Im not sure if there is any more relevant code to show, this event is on a thread. The crash occurs as soon as i click the close button on the dialog.
Keir On Tue, 2005-03-22 at 22:53 +0100, Gian Mario Tagliaretti wrote: > On Tue, 22 Mar 2005 17:55:23 +0000, Keir Lawson > <[EMAIL PROTECTED]> wrote: > > > I have set up a MessageDialog to display an error message, and want my > > app to quit when its close button is pressed. i use this code: > > > > resp = self.dialog.run() > > if resp == gtk.RESPONSE_CLOSE: > > gtk.main_quit() > > sys.exit() > > However, my app just crashes, what am i doing wrong? > > you don't need to call sys.exit() since gtk.main_quit() is enough. > to see what is wrong I think is not enough this portion of code. > > > Keir Lawson > > cheers > gmt -- _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/