Accessing Tk-inter Popup menu entry

Eric Brunel eric.brunel at
Mon Sep 9 10:35:32 CEST 2002

Aki Niimura wrote:

> Hi,
> 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. 
But doing:
popup.entryconfigure(1, state=DISABLED)
works without problem.
- Eric Brunel <eric.brunel at> -
PragmaDev : Real Time Software Development Tools -

More information about the Python-list mailing list