add_command

Gorny gorny0 at zonnet.nl
Sun May 12 12:43:01 EDT 2002


Hi,

Is there a way of doing something so a menu-command can call
the callback function with (more) or other arguments??

So you could use instead of this:

status = Menu()
status.add_command(label='wh00t', command=self.func)

something like:

status.add_command(label='wh00t', command=self.func,
argskeyword=tuple_containing_args)

Gorny

--
"Spread the sources"
http://gorny.cjb.net






More information about the Python-list mailing list