[wxPython-users] check to see if popup menu is enabled.

Robin Dunn robin at alldunn.com
Fri Sep 1 15:56:42 PDT 2006


Walter Igo wrote:
> I have the fallowing line of code.
>  
> self.Bind(wx.EVT_CONTEXT_MENU,self.PopUpSwitch)
>  
> and it works fine.. but I want to check to see if the menu is activated 
> (popedOpen) to remove a fue choices if it is already open.
>  
> I have already done this in the past a fue months ago. and it worked 
> fine. but I acidently overwritten the code with a earlier version.
>  
> Now I cant find the command that checks the state of the menu, to see if 
> it is open or not.

There isn't one.  In your old code you probably either adjusted or 
recreated the menu before calling PopupMenu.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list