Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_equal_length_widgets.py
- from Tkinter import *
- root = Tk()
- root.geometry('300x100')
- title = StringVar()
- title.set('Text Area')
- b = Button(root, width=30, bg='green', text='BUTTON')
- b.pack(fill="x")
- e = Entry(root, textvariable=title, width=30, bg='yellow')
- e.pack(fill="x")
- l = Label(root, width=30, bg='red', text='LABEL')
- l.pack(fill="x")
- t = Text(root, width=30)
- t.pack(fill="x", expand=True)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement