wx.ribbon.RibbonButtonBarEvent¶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
Class Hierarchy¶
Inheritance diagram for class RibbonButtonBarEvent:

Methods Summary¶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. |
Properties Summary¶
Class API¶wx.ribbon.RibbonButtonBarEvent(CommandEvent)¶Possible constructors:
RibbonButtonBarEvent(command_type: EventType=wxEVT_NULL, win_id: int=0,
bar: Optional[RibbonButtonBar]=None, button:
Optional[RibbonButtonBarButtonBase]=None) -> None
Event used to indicate various actions relating to a button on a RibbonButtonBar.
__init__(self, command_type: EventType=wxEVT_NULL, win_id: int=0, bar: Optional[RibbonButtonBar]=None, button: Optional[RibbonButtonBarButtonBase]=None)¶Constructor.
command_type (wx.EventType) –
win_id (int) –
bar (wx.ribbon.RibbonButtonBar) –
button (RibbonButtonBarButtonBase) –
None
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 : Menu)¶Display a popup menu as a result of this (dropdown clicked) event.
menu (wx.Menu) –
bool
SetBar(self, bar : RibbonButtonBar)¶Sets the button bar relating to this event.
bar (wx.ribbon.RibbonButtonBar) –
None
SetButton(self, bar : RibbonButtonBarButtonBase)¶Sets the button relating to this event.
bar (RibbonButtonBarButtonBase) –
None
New in version 2.9.5.