[pygtk] Some questions on the UIManager and the ActionGroups

Nemesis nemesis2001 at gmx.it
Fri Aug 11 21:53:13 WST 2006


On Fri, 11 Aug 2006 01:48:13 -0700
John Finlay <finlay at moeraki.com> wrote:

> >>>         for action in actions: 
> >>>             if len(action)<7:
> >>>                 actiongroup.add_actions([action])
> >>>             else:
> >>>                 actiongroup.add_actions([action[0:6]],action[-1])
> >> You could try using a lambda expression for the callback:
> >>     
> >
> > Yes, that's right, but I tend not to use lambdas cause I don't like
> > them and they are deprecated so could disappear in the future. 
> >
> >   
> I don't think lambda is going to disappear any time soon.

I agree with you, but I don't like lambas syntax, and actually it
would require more code the lambda solution than the for/if/else
snippet I posted. 


-- 
 
 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org


More information about the pygtk mailing list