Advertisement
Guest User

Untitled

a guest
Jun 9th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import tkinter as tk
  2. base=tk.Tk()
  3. fm1 = tk.Frame()
  4. button1=tk.Button(base,text="push1")
  5. button2=tk.Button(fm1,text="push2")
  6. button3=tk.Button(fm1,text="push3")
  7. button4=tk.Button(base,text="push4")
  8.  
  9. button1.pack(fill = 'both', expand = True)
  10. fm1.pack(fill = 'both', expand = True)
  11. button2.pack(side = tk.LEFT, fill = 'both', expand = True)
  12. button3.pack(side = tk.LEFT, fill = 'both', expand = True)
  13. button4.pack(fill = 'both', expand = True)
  14. base.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement