toolbar.Bind(wx.EVT_MENU_RANGE,
self.OnToolbarButtonPressed,
id=EVT_BUTTON_ONE,
id2=EVT_BUTTON_THREE)
My question is:
How can I manually set a toolbar radio button like BUTTON_TWO to "pressed"?
I tried constructing and posting a similar event as follows but it did not work:
evt = wx.PyCommandEvent(wx.EVT_MENU_RANGE.typeId, EVT_BUTTON_TWO)
wx.PostEvent(self.GetEventHandler(), evt)Thank you!Nick
IIRC, myRadioButton2.SetValue(true) will work.
David
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.