[wxpython-users] destroy that window, NOW!

Robin Dunn robin at alldunn.com
Tue May 6 10:11:57 PDT 2008


raffaello wrote:
> The command wx.Window.Destroy() does not destroys the window at once, 
> but adds it to a list to be deleted on idle time.
> But if one needs not be encumbered by flotsam and jetsam of windows not 
> yet destroyed, is there a command that obliterate them immediately or 
> tells the application to wait until the actual destruction has been 
> carried out?

First, it's only the top-level windows (frames and dialogs) that have 
this delayed destruction feature, the others are destroyed immediately. 
It's possible that might change someday, but I doubt it.

Second, what exactly is the problem with having them stick around for a 
few milliseconds?  Would hiding them before the Destroy solve it for you?

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!



More information about the wxpython-users mailing list