[pygtk] Some questions on the UIManager and the ActionGroups
John Finlay
finlay at moeraki.com
Fri Aug 11 16:48:13 WST 2006
Nemesis wrote:
> On Thu, 10 Aug 2006 18:50:16 -0700
> John Finlay <finlay at moeraki.com> wrote:
>
>
>
>>> but this format is not accepted by add_actions. at the moment I'm
>>> using a little workaround:
>>>
>>> for action in actions:
>>> if len(action)<7:
>>> actiongroup.add_actions([action])
>>> else:
>>> actiongroup.add_actions([action[0:6]],action[-1])
>>>
>>> but I'd like to implement a cleaner (if exists) solution.
>>>
>>>
>> 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.
John
More information about the pygtk
mailing list