Replies: 1 comment 1 reply
-
As per noted in #277, CTk.withdraw() won't work until you hit the main loop. After you hit mainloop it seems to hide normally though (e.g. through You could try |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I am trying to put together a helper/kickstart framework using customtkinter. To this end I have created a couple of classes, respectively, for launching root and for launching Toplevel windows. One of the parameters I pass to Toplevel class, hide_master, is an option to withdraw the parent.
However, I have been unable to get the parent to withdraw. A simplified version of my class signatures look like this:
Inside my class CBTkToplevel class I have a couple of lines:
I can see this being entered in the debugger, but it has no effect.
If I convert my classes to vanilla tkinter, as per the scatch file below, it works:
Simply changing the one line of CBTkApp, in the above, to this:
class CBTkApp(ctk.CTk):
Causes the broken behaviour to reproduce.
Is there a workaround to this?
Thanks,
Clive
Beta Was this translation helpful? Give feedback.
All reactions