Re: self-closing window with wxPython

2010-09-18 Thread Gregory Ewing
Jabba Laci wrote: I'd like to create a simple alarm application that shows an alarm window. The application should shut down automatically after 5 seconds. Are you sure that's a good idea? What happens if the user gets distracted for 6 seconds and misses the alarm? -- Greg -- http://mail.pyth

Re: self-closing window with wxPython

2010-09-17 Thread Ian Kelly
On Fri, Sep 17, 2010 at 3:00 PM, Jabba Laci wrote: > Hi, > > > 2) I saw this in the documentation for Destroy() -- "Frames and dialogs > are not destroyed immediately when this function is called -- they are added > to a list of windows to be deleted on idle time, when all the window's > events h

Re: self-closing window with wxPython

2010-09-17 Thread Jabba Laci
Hi, > 2) I saw this in the documentation for Destroy() -- "Frames and dialogs are > not destroyed immediately when this function is called -- they are added to a > list of windows to be deleted on idle time, when all the window's events have > been processed." That might be consistent with what

Re: self-closing window with wxPython

2010-09-17 Thread Philip Semanchuk
On Sep 17, 2010, at 12:05 PM, Jabba Laci wrote: > Hi, > > I'd like to create a simple alarm application that shows an alarm > window. The application should shut down automatically after 5 > seconds. The problem is the following: > * If I keep the mouse outside of the window, the application kee

self-closing window with wxPython

2010-09-17 Thread Jabba Laci
Hi, I'd like to create a simple alarm application that shows an alarm window. The application should shut down automatically after 5 seconds. The problem is the following: * If I keep the mouse outside of the window, the application keeps running. Somehow self.Destroy() is not taken into account.