help: menu item callback in TK
lin li
linli at computer.org
Tue Feb 22 16:38:45 EST 2000
Hi,
I have the following problem and any help is greatly appreciated.
I generated a menu using the data in a dynamically composed list.
Since I do not know what will be in the list, I can only have all the
command items in the menu to point to the same callback. Now
from inside the callback, how can I find out which menu item is
selected? To make it more interesting, the menu can have two or
three levels of cascades.
I am running Python 1.5.2 with Tkinter on NT.
Thank you very much.
Lin
More information about the Python-list
mailing list