[wxPython-users] Selection menu item?
Eli Golovinsky
gooli at tuzig.com
Fri Feb 2 07:53:51 PST 2007
If you're talking about a popup menu that you showed with
womeWindow.PopupMenu(..), I don't think you can.
You can simulate the EVT_MENU however (untested):
event = wx.CommandEvent(type, control.GetId())
event.SetEventObject(menuItem)
event.SetInt(menuItem.GetId())
control.GetEventHandler().ProcessEvent(event)
Basil Shubin wrote:
> Hi friends,
>
> How I can select menu item programmatically? Not just 'check' an item,
> but select with EVT_MENU event raising?
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
More information about the wxpython-users
mailing list