Tkinter: passing parameters to menu commands

Philippe C. Martin philippecmartin at
Fri Jan 7 07:16:49 EST 2005


I have he following need and do not find an easy way out:

I have many menu items and would like them all to call the same method
-However, I need the method called to react differently depending on the
menu item selected. Since the menu command functions do not seem to
receive any type of event style object, is there some type of Tkinter
call that would let my method know the menu id selected ?


Philippe C. Martin
SnakeCard LLC

More information about the Python-list mailing list