Advertisement
here2share

# Tk_hide_button.py

Jun 16th, 2015
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # Tk_hide_button.py
  2.  
  3. import Tkinter
  4.  
  5. root = Tkinter.Tk()
  6.  
  7. def hide():
  8.     b1.lower()
  9.  
  10. def show():
  11.     f.lower()
  12.  
  13. f = Tkinter.Frame(root)
  14. f.pack(fill = 'x')
  15. b1 = Tkinter.Button(text = 'hide', command = hide)
  16. b1.pack(in_ = f, fill = 'x')
  17. b2 = Tkinter.Button(root, text = 'show', command = show)
  18. b2.pack(fill = 'x')
  19.  
  20. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement