Advertisement
here2share

# Tk_equal_length_widgets.py

Mar 16th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. # Tk_equal_length_widgets.py
  2.  
  3. from Tkinter import *
  4.  
  5. root = Tk()
  6. root.geometry('300x100')
  7.  
  8. title = StringVar()
  9. title.set('Text Area')
  10. b = Button(root, width=30, bg='green', text='BUTTON')
  11. b.pack(fill="x")
  12. e = Entry(root, textvariable=title, width=30, bg='yellow')
  13. e.pack(fill="x")
  14. l = Label(root, width=30, bg='red', text='LABEL')
  15. l.pack(fill="x")
  16. t = Text(root, width=30)
  17. t.pack(fill="x", expand=True)
  18.  
  19. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement