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¶
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¶
- class wx.ribbon.RibbonButtonBarEvent(CommandEvent)¶
Possible constructors:
RibbonButtonBarEvent(command_type=wxEVT_NULL, win_id=0, bar=None, button=None) -> None
Event used to indicate various actions relating to a button on a RibbonButtonBar.
Methods¶
- __init__(self, command_type=wxEVT_NULL, win_id=0, bar=None, button=None)¶
Constructor.
- Parameters:
command_type (wx.EventType)
win_id (int)
button (RibbonButtonBarButtonBase)
- Return type:
None
- GetBar(self)¶
Returns the bar which contains the button which the event relates to.
- Return type:
- GetButton(self)¶
Returns the button which the event relates to.
- Return type:
RibbonButtonBarButtonBase
Added in version 2.9.5.
- PopupMenu(self, menu)¶
Display a popup menu as a result of this (dropdown clicked) event.
- Parameters:
menu (wx.Menu)
- Return type:
bool
- SetBar(self, bar)¶
Sets the button bar relating to this event.
- Parameters:
- Return type:
None
- SetButton(self, bar)¶
Sets the button relating to this event.
- Parameters:
- Return type:
None
Added in version 2.9.5.
Properties¶