Hi all!
I was directed here by those on the irc-channel.
I'm making an editor, and want to open new windows when I open a new
file. This is very easy as I have a class that creates a window and load
the file and so on. The problem is that I got more than one window in
the same application, so when I press the close button on one of them
all of them terminates and the application dies.

This is when my destroy_event callback function look like this:

def onQuit(self, widget, event):
        gtk.main_quit()
        return 0

To solve it I changed it to:

def onQuit(self, widget, event):
        self.window.destroy()
        return 0

But this create a new problem: When I've closed all the windows the app
is still running because I haven't run the gtk.main_quit().
How do I solve this problem?

Please help
And excuse my bad english, it aint my first language ;)

--

Helmutt

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to