[pygtk] gtk.ActionGroup.add_actions and user_data

Tim Evans t.evans at aranz.com
Mon Mar 29 05:26:39 WST 2010


On 2010-03-27 12:08, ilya korchemkin wrote:
> As documentation says, gtk.ActionGroup.add_actions method has 2 arguments:
> entries: a list or tuple of action descriptions
> user_data: data to pass to the action callbacks
> The same user_data is passed to all of callbacks. Is it possible to
> define different user_data for callbacks?

You could construct each callback with functools.partial.

-- 
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/


More information about the pygtk mailing list