On Mon, 5 Mar 2001, Michele Campeotto wrote:

> 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.
> 
> def delete_event_handler():
>     if foo is not None:
>         return TRUE
>     mainquit()

The delete event signal has widget and event arguments.  If your handler
doesn't accept these arguments, you get an error.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



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

Reply via email to