Event used to indicate various actions relating to a button on a RibbonButtonBar
.
See also
RibbonButtonBar
for available event types.
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. |
RibbonButtonBarEvent
(wx.PyCommandEvent)¶Event used to indicate various actions relating to a button on a RibbonButtonBar
.
See also
RibbonButtonBar
for available event types.
__init__
(self, command_type=None, win_id=0, bar=None)¶Default class constructor.
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.
An instance of RibbonButtonBar
.
PopupMenu
(self, menu)¶Display a popup menu as a result of this (dropdown clicked) event.
menu – an instance of wx.Menu
.
SetBar
(self, bar)¶Sets the button bar relating to this event.
bar – an instance of RibbonButtonBar
.