Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. root = Tk()
  4.  
  5. Grid.rowconfigure(root, 0, weight=1)
  6. Grid.columnconfigure(root, 0, weight=1)
  7.  
  8. frame=Frame(root)
  9. frame.grid(row=0, column=0, sticky=N+S+E+W)
  10.  
  11. Grid.rowconfigure(frame, 0, weight=1)
  12.  
  13. Grid.columnconfigure(frame, 0, weight=1)
  14. btn = Button(frame, text="open")
  15. btn.grid(row=0, column=0, sticky=N+S+E+W)
  16. Grid.columnconfigure(frame, 1, weight=1)
  17. btn = Button(frame, text="close")
  18. btn.grid(row=0, column=1, sticky=N+S+E+W)
  19.  
  20. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement