Scrive James Henstridge <[EMAIL PROTECTED]>:

> On Tue, 6 Mar 2001 [EMAIL PROTECTED] wrote:
> 
> > > > 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.
> > 
> > Sorry for not being very clear, but this wasn't my problem this was
> only a 
> > quick script to show what I wanted to do. My handler has needed
> arguments and 
> > it gets called fine (no errors) but when I return TRUE it closes the
> window and 
> > the app keeps running.
> 
> well, you need to call mainquit() if you want your app to quit.  In
> your example, it doesn't call mainquit() if it returns TRUE.


no, when I return TRUE, I want my app to keep running and the window to remain 
open.


  -- Michele
   www.moleskine.f2s.com
 (o_ '
 //\
 V_/_

-------------------------------------------------
Everyone should have http://www.freedom2surf.net/

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

Reply via email to