Tkinter - Maximizing and minimizing the window before using any widgets, hides the widgets when I use them Tkinter - Maximizing and minimizing the window before using any widgets, hides the widgets when I use them tkinter tkinter

Tkinter - Maximizing and minimizing the window before using any widgets, hides the widgets when I use them


You will have exactly the same problem if you manually resize the window before clicking the button. The issue isn't tied to maximize/minimize per se, it's tied to the fact that the user has said "I want the window to be this size" and tkinter is trying to honor that by not resizing the window against the user's wishes.

The solution is to reset the size of the window before adding or removing widgets. Add the following line of code after your global statements in enterG:

homeP.geometry("")