Advertisement
here2share

# Tk_btn_fill.py

May 24th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. # Tk_btn_fill.py
  2.  
  3. from Tkinter import *
  4.  
  5. root = Tk()
  6. root.geometry("500x500")
  7. widget = Button(root, text='text1')
  8. widget.pack(fill=X, expand=1)
  9. widget = Button(root, text='text2')
  10. widget.pack(fill=Y, expand=1)
  11. widget = Button(root, text='text3')
  12. widget.pack(fill=BOTH, expand=1)
  13. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement