wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent¶
Event used to indicate various actions relating to a button on a RibbonButtonBar
.
See also
RibbonButtonBar
for available event types.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Returns the bar which contains 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. |
Class API¶
- class RibbonButtonBarEvent(wx.PyCommandEvent)¶
Event used to indicate various actions relating to a button on a
RibbonButtonBar
.See also
RibbonButtonBar
for available event types.
Methods¶
- __init__(self, command_type=None, win_id=0, bar=None)¶
Default class constructor.
- Parameters:
command_type (integer) – the event type;
win_id (integer) – the event identifier;
bar – an instance of
RibbonButtonBar
.
- GetBar(self)¶
Returns the bar which contains the button which the event relates to.
- Returns:
An instance of
RibbonButtonBar
.
- PopupMenu(self, menu)¶
Display a popup menu as a result of this (dropdown clicked) event.
- Parameters:
menu – an instance of
wx.Menu
.
- SetBar(self, bar)¶
Sets the button bar relating to this event.
- Parameters:
bar – an instance of
RibbonButtonBar
.