Tkinter: passing parameters to menu commands

Philippe C. Martin philippecmartin at sbcglobal.net
Fri Jan 7 13:16:49 CET 2005


Hi,

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




-- 
***************************
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***************************




More information about the Python-list mailing list