Re: [Tkinter-discuss] tk bug in wait_visibility?

2020-02-14 Thread Bryan Oakley
wait_visibility waits for a *change in the visibility,* it doesn't just wait for the window to be visible. If it's already visible, wait_visibility will wait for it to be invisible. The geometry method doesn't affect the visibility state (unless you move the window off-screen perhaps) which is why

[Tkinter-discuss] tk bug in wait_visibility?

2020-02-14 Thread Vasilis Vlachoudis
In some dialogs I wanted to restore the size from the last time it was opened therefore, before calling the wait_window I have self.wait_visibility() self.geometry(...restore...) #<<< the geometry setting will not work if it is not visible self.wait_window() If something happens during the f