Re: dynamic panel destruction
Nathan smith <[email protected]> Fri, 21 Jun 2024 14:48:13 +0100
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hi all, thanks Dietmar , good to know and explains certain tracebacks I got. My question more is though, if another module creates a panel/window, is there a way for me to dynamically list all the wx windows/panels created? In the senario of: Main program calls module.create_screen, but module.create_screen tracebacks, I want a catch to then clean up the failure of that tmodule. Nathan On 10/06/2024 19:58, Dietmar Schwertberger wrote: > When destroying windows or widgets, you need to be sure that there are > no pending events. > > So, e.g. call .Hide() and then .DestroyLater() or use wx.CallAfter to > call .Destroy() > > Regards, > > Dietmar > -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/204cf658-b9df-4771-b915-27ca457a7b55%40gmail.com.