Hi list,
I'm using a uimanager to manage popupMenu.
I create an action list.
actions_list=[(_('ShowAttributes'),None,'ShowAttributes',None,_('Show
attributes of current node'),self.show_attributes)]
then i populate the actiongroup with the list:
actiongroup.add_actions(actionlist)
Finally, i insert the action group in the uimanager:
uimanager.insert_action_group(actiongroup,0)
How can i pass extra data to the function (here self.show_attributes)?
Thanks for your answer,
Regards,
Philippe Collet
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/