programmatically open a non-context menu?

How can I open a menu with code?

I have a menu that must be used before the user can continue, and I would like to pop it up so the user knows it is there and can make an immediate selection.

I’ve been trying to issue wxEVT_COMMAND_MENU_SELECTED CommandEvents to do this, but I now think that is more for selecting menu items than menus. I wanted to try that for opening menus, but there doesn’t seem to be an id that I can use.

My guess is that I had a wrong approach, and I’ve been unable to find a right one. Can someone help me out?

Thanks,
Craig

Hi Craig,

How can I open a menu with code?

I have a menu that must be used before the user can continue, and I would
like to pop it up so the user knows it is there and can make an immediate
selection.

I've been trying to issue wxEVT_COMMAND_MENU_SELECTED CommandEvents to do
this, but I now think that is more for selecting menu items than menus. I
wanted to try that for opening menus, but there doesn't seem to be an id
that I can use.

I don't think something like that can be done (but be aware I have
been away from wxPython for 3 weeks so something may have slipped out
of my mind :smiley: ).

My guess is that I had a wrong approach, and I've been unable to find a
right one. Can someone help me out?

I would probably warn the user using a popup window, or a wx.TipWindow
or a more invasive wx.Dialog... that mostly depends on how you wish to
"force" the user to do something. You might also take a look at the
latest additions to wxPython SVN in the AGW directory, to use
something like my SuperToolTip widget:

http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/AGW/agw/supertooltip.py?revision=56415&view=markup&sortby=file

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Thu, Jan 8, 2009 at 1:45 PM, Craig Sabbey wrote: