tkinter-widget

显示、隐藏组件

self.buttonForget = tk.Button(self.root,
text = 'Click to hide Label',
command=lambda: self.label.pack_forget())
# We need to call the pack() method again to pack the widget to make it visible, or in other words, to recover it.