Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_hide_button.py
- import Tkinter
- root = Tkinter.Tk()
- def hide():
- b1.lower()
- def show():
- f.lower()
- f = Tkinter.Frame(root)
- f.pack(fill = 'x')
- b1 = Tkinter.Button(text = 'hide', command = hide)
- b1.pack(in_ = f, fill = 'x')
- b2 = Tkinter.Button(root, text = 'show', command = show)
- b2.pack(fill = 'x')
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement