faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

How do I get the label string from command item added to a menu?

Feb 25th, 2003 03:06
Mickel Grönroos, Chris Myers,


If you know at what index the menu item is in the menu, you can use the 
entrycget function, e.g. try
  label = menu.entrycget("last", "label")
if you want the label of the last menu item in a menu named "menu".
/Mickel