How to quit program

In my program I have a procedure for a quitting my program when a user chooses EXIT choice
from menu
That worked as long as I used older version of wxPython (2.4.0.2). Now with
the latest version of wxPython, the program does not quit but hangs and I must use CTRL-
Break (when I started the program from console)

Thanks for help
Lad

Thank you for your reply.
But is there a way how to find out how many( if any) hidden windows are running before I
decide to exit the program?
Thanks for help
Lad

···

export@hope.cz wrote:
> In my program I have a procedure for a quitting my program when a user chooses EXIT choice
> from menu
> That worked as long as I used older version of wxPython (2.4.0.2). Now with
> the latest version of wxPython, the program does not quit but hangs and I must use CTRL-
> Break (when I started the program from console)

By default the MainLoop should terminate by itself as soon as all of the
top-level windows have been closed. If you have only hidden some
windows then it will continue running. Note that modal dialogs and
taskbar icons need to be explicitly Destroy()'ed when you are done with
them.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I use windows, but I think my question is generic. Is there a way to trap
when the user clicks the button in the frame (to close the window) and
have that run a routine that prompts an "Are you certain you want to quit
the application?" message, or other program logic instead of instantly
ending the program?

Thank you!
Dave

···

----- Original Message -----
From: <export@hope.cz>
Newsgroups: gmane.comp.python.wxpython
Sent: Tuesday, November 23, 2004 6:02 AM
Subject: How to quit program

In my program I have a procedure for a quitting my program when a user

chooses EXIT choice

from menu
That worked as long as I used older version of wxPython (2.4.0.2). Now

with

the latest version of wxPython, the program does not quit but hangs and I

must use CTRL-

Break (when I started the program from console)

Thanks for help
Lad