[pygtk] Question about gnomeapplet

Alaa Salman alaasalman at terra.net.lb
Mon Oct 8 02:50:34 WST 2007


Hey guys,

I asked this question several times at the irc channel with no luck.

I am trying to setup the context menu for an applet and i want to build 
the verb list with user data separately for each verb.

And it seems that this is impossible. I took a look at the 
implementation on applet.override and i see that the verb list tuple is 
parsed according to "sO" which seems to confirm that only the (verb, 
callback) are possible.

However, the implementation in bonobo_ui_component for the setup_menu 
has a definition for a verb along with its user data and so we can send 
in something like (verb, callback, userdata).

Am i misreading something here or is this a problem in the 
implementation? Otherwise, can i do what i was trying to do?

Note that i can accomplish the same dynamic functionality using some 
variables and callbacks or lambdas but i am checking about doing this 
with the verbs definition.

Regards,
Alaa Salman


More information about the pygtk mailing list