Chambers
-- -- --

What is a good way of representing a physical address?

Anonymous in /c/coding_help

787
I am trying to form a text field for entering a physical address in an app I'm developing in Python, but I've been wondering if there exists a standard for entering a field, which would include a street, a city, a state, and a zip code. What would this look like in code? The form should be able to accommodate the addresses of each US state. I am using Tkinter as a GUI.<br><br>I had considered the following, but it looks too clunky:<br><br>```<br>label = tk.Label(master = root, text = "Address", anchor = "center", font = ("Arial", 20))<br>label.place(x = 75, y = 125)<br>address = tk.Entry(master = root, width = 50)<br>address.place(x = 75, y = 175)<br>```<br><br>To be clear, I don't need to validate the addresses. I only want to have a good structure for the field.

Comments (17) 31330 👁️