On Sun, Nov 21, 2004 at 12:21:27AM +0100, Martijn Brouwer wrote: > I am writing my first program using python + gtk + glade. I want to show > dialog when the user pressed the close button of the main window. This > happens, but still the mainwindow is closed, immediately, before the > user has done something with the quit dialog. I have stopped the destroy > signal of the main window (see below). When I run the program, I see on > the console: > GLib-GObject-WARNING **: gsignal.c:788: no emission of signal "destroy" > to stop for instance `0x8245158'
Have you tried catching delete_event? http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.005.htp http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.006.htp http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.011.htp Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/