[wxPython-users] calling wx.CallAfter after wx.Frame.Destroy

Robin Dunn robin at alldunn.com
Mon Jan 21 10:19:45 PST 2008


Aaron Brady wrote:
> What if we call wx.CallAfter after calling frame.Destroy, where frame is the
> only wx.Frame created?  I.e., does MainLoop return, after top-level windows
> are destroyed, without the event queue being empty?

For top-level windows the Destroy method doesn't actually destroy the 
window immediately, instead it is added to a pending delete queue which 
is processed in idle time, which will happen after the pending events 
are processed.


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




More information about the wxpython-users mailing list