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?
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 ).
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: