[pygtk] exiting app

Martin Bilek spooky.ln at tbs-software.com
Mon Feb 11 00:35:51 WST 2008


hi all,
i make an window and connect to function.

win = gtk.Window()
win.connect("destroy", exitApp)
gtk.main()

def exitApp(*args))
	dlg = gtk.MessageDialog(type=gtk.MESSAGE_WARNING,
buttons=gtk.BUTTONS_OK)
	dlg.set_markup("Please use Exit from Filemenu instead")
	dlg.run()
	dlg.destroy()
	return

but after clicking on window close button window dissapear and showing
only message dialog.
how i make main window still visible ? 
thanks
-- 
Martin Bilek <spooky.ln at tbs-software.com>
TBS Software




More information about the pygtk mailing list