app doesn't terminate after manually closing all frames

[...]

your code works here on windows...
anyway as an ideea.... when it is ok to close the frame skip the event...
maybe the close event needs to get to some other places beside you close handler ;o)

···

On Tue, 01 Mar 2005 15:09:55 +0200, Christian Kristukat <c.kristukat@hoc.net> wrote:

Hi,
I'd like to have a 'confirm closing dialog' for each child frame of a multi
frame application when closing the top-level frame. For that purpose I'm keeping
a list of all child frames and cycle through them, calling Close() on each. The
close event handler of each child then displays a dialog and decides whether to
destroy itself or not. After having destroyed all children, a self.Destroy()
closes the top frame but doesn't terminate the application. However when
ommitting showing the dialogs it works. Here's an example:

(I'm aware that closing the child frames directly results in a failure.)

--
Peter Damoc
Warrior Of The Light
http://www.sigmacore.net/

Peter Damoc wrote:

your code works here on windows...

ah. Interesting to know.

anyway as an ideea.... when it is ok to close the frame skip the event...
maybe the close event needs to get to some other places beside you close handler ;o)

Doesn't help. Thanks anyway.

Christian