Event used to indicate various actions relating to a button on a wx.ribbon.RibbonButtonBar.
For toggle buttons, IsChecked
can be used to test the state of the button.
See wx.ribbon.RibbonButtonBar for available event types.
See also
Constructor. |
|
Returns the bar which contains the button which the event relates to. |
|
Returns the button which the event relates to. |
|
Display a popup menu as a result of this (dropdown clicked) event. |
|
Sets the button bar relating to this event. |
|
Sets the button relating to this event. |
wx.ribbon.
RibbonButtonBarEvent
(CommandEvent)¶Possible constructors:
RibbonButtonBarEvent(command_type=wxEVT_NULL, win_id=0, bar=None,
button=None)
Event used to indicate various actions relating to a button on a RibbonButtonBar.
__init__
(self, command_type=wxEVT_NULL, win_id=0, bar=None, button=None)¶Constructor.
command_type (wx.EventType) –
win_id (int) –
bar (wx.ribbon.RibbonButtonBar) –
button (RibbonButtonBarButtonBase) –
GetBar
(self)¶Returns the bar which contains the button which the event relates to.
GetButton
(self)¶Returns the button which the event relates to.
RibbonButtonBarButtonBase
New in version 2.9.5.
PopupMenu
(self, menu)¶Display a popup menu as a result of this (dropdown clicked) event.
menu (wx.Menu) –
bool
SetBar
(self, bar)¶Sets the button bar relating to this event.
bar (wx.ribbon.RibbonButtonBar) –
SetButton
(self, bar)¶Sets the button relating to this event.
bar (RibbonButtonBarButtonBase) –
New in version 2.9.5.