Hide, Recover and Delete Tkinter Widgets | Delft Stack
www.delftstack.com › howto › python-tkinterNov 22, 2019 · pack_forget() is bind to the command of the button buttonForget. It will hide the label widget after clicking the button, but the label itself still exists but becomes invisible. We need to call the pack() method again to pack the widget to make it visible, or in other words, to recover it. grid_forget() Method to Hide Tkinter Widgets if grid Layout Is Used. If the widgets are placed with the grid layout manager, we should use grid_forget() method to make the Tkinter widgets invisible.
python - pack_forget() not working - Stack Overflow
stackoverflow.com › questions › 43155285Apr 01, 2017 · The effect of pack_forget () is render the widget on which it is applied to be invisible (like it is falsely removed). The proof is that if you add, after visual.update () this line print (sample.winfo_exists ()) it will print you 1, which thing means your label still exists in reality. So to effectively get rid of your label, you must use sample.destroy () instead.