[wxPython] RE: Message 8 Closing Windows in the presence of idle processing

Thanks, Robin, but the only thing Close() does is drive my onClose method.
I want to know what the onClose method is supposed to do. It used to do
Destroy() but that no longer works since the introduction of idle time
processing.
Rob

···

--__--__--

Message: 8
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Subject: Re: [wxPython] Closing Windows in the presence of idle processing
Date: Tue, 16 Oct 2001 12:52:44 -0700
Reply-To: wxpython-users@lists.wxwindows.org

I have moved some application processing into idle time. Now I cannot
destroy any window without disconnecting wxEVT_IDLE. When closing the

main

win and app this is not a problem but I don't know how to close secondary
windows. I called Destroy() but the window does not disappear. What is

the

recommended technique?

For top level windows you should call Close(), which will then do the actual
Destroy() in idle time after any pending events for the window have been
handled.

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

Thanks, Robin, but the only thing Close() does is drive my onClose method.
I want to know what the onClose method is supposed to do. It used to do
Destroy() but that no longer works since the introduction of idle time
processing.

It should do Destroy() in addition to anything else you need to do before
the frame closes. What does your idle handler look like?

···

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