[wxPython-users] Q: .PopupMenu...

Robin Dunn robin at alldunn.com
Thu Jan 18 23:47:21 PST 2007


Stefan Holmgren wrote:
> Hi
> When using .PopupMenu(menu) for a wx object, in my case a wxTreeCtrl, the 
> main thread is freezing until a menu item is selected or menu is closed...
> Is there a way to make it continue while the popup menu is active?

No, PopupMenu works like wx.Dialog.ShowModal, it has it's own event loop 
and doesn't return until either an item is selected or the menu is 
dismissed with ESC or clicking elsewhere.


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





More information about the wxpython-users mailing list