Accessing Tk-inter Popup menu entry
eric.brunel at pragmadev.com
Mon Sep 9 10:35:32 CEST 2002
Aki Niimura wrote:
> I have created a popup menu. (see the attached example code)
> Now I would like to change the state of a popup menu entry dynamically.
> I tried to use
> popup.entryconfig(2, state=DISABLED)
> But it didn't work although it worked fine with a regular menu bar.
What was the problem? I tried it and it worked, but not with index 2,
because the menu item numbered 2 is the 3rd one, which is the separator.
works without problem.
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
More information about the Python-list