Hmm. I know that two signals are emitted when the exit button is pressed, "delete_event" and "destroy". You could connect the window to both, defining the handlers as simply returning True. Theoretically (at least in my theory) that should just stop the signal there and stop the exit process.
----- Original Message ---- From: Paco Moreno <[EMAIL PROTECTED]> To: Frédéric <[EMAIL PROTECTED]> Cc: [email protected] Sent: Wednesday, June 25, 2008 7:17:00 AM Subject: Re: [pygtk] Disable/enable window close button good question. Anybody knows? 2008/6/25 Frédéric <[EMAIL PROTECTED]>: Hello, How do I manually disable/enable the window close button (the little cross)? Thanks, _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- |Paco Moreno |web: http://www.assamita.net |blog: http://blog.assamita.net |correo: packo en assamita punto net |jabber: [EMAIL PROTECTED]
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
