On Wed, 2005-08-31 at 11:29 +0200, [EMAIL PROTECTED] wrote:
> 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)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Change this line to:
actiongroup.add_actions(actionlist, extra_data)

> 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)?

-Toshio

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to