[Tkinter-discuss] How do I identify which menu item has bee selected?
thicket
mark_eastwood at ntlworld.com
Thu Aug 20 00:41:13 CEST 2009
Well, my real suggestion would be to change this application. Don't
you think it is weird that when you select a month for a specific
action, all the other actions will have the same month selected ?
yeah I know - I've used a radiobutton to see if it could be used instead of
a cascaded menu. The 'partial' bit is that I was able to to identify the
selection through the use the variables but as you say - it is not a good
way to go about this.
I've just run your code and it is exactly what I'm trying to do :-D however
I ideally want to use add_cascade() instead of add_radiobutton() .. my
problem is that a menu object does not provide for use
of variables and so far, using variables is the only way I've managed to get
a 'partial' solution albeit a bad one!!
Therefore the solution I've been trying to achieve is what your code does
but using add_cascade(). Failing that a rethink of the app.
thanks again
cheers
--
View this message in context: http://www.nabble.com/How-do-I-identify-which-menu-item-has-bee-selected--tp25023156p25053122.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
More information about the Tkinter-discuss
mailing list