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 <[EMAIL PROTECTED]>
TBS Software


_______________________________________________
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