Hi friends,
How I can select menu item programmatically? Not just 'check' an item, but select with EVT_MENU event raising?
Thanks!
Hi friends,
How I can select menu item programmatically? Not just 'check' an item, but select with EVT_MENU event raising?
Thanks!
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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org