Hi guys,
  I want to connect to the 'delete_event' of a GnomeApp and decide in
the handler if the window must be closed or not. The GTK+ docs says
that returning TRUE from the handler will do the job, but this isn't
working on pygtk.

<pre>
def delete_event_handler():
    if foo is not None:
        return TRUE
    mainquit()
</pre>

Hints?
Thanks

  -- Michele  -  www.moleskine.f2s.com

  "Your mouse has moved, you must restart
   Windows to see the changes. Restart now?"

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to