Q: .PopupMenu...

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?

Using Python 2.3 and wxPython 2.4.2.4

Tanx
Stefan H

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!