Handles events related to RibbonToolBar
.
Default class constructor. |
|
Returns an instance of |
|
Pops up the given menu and returns control when the user has dismissed the menu. |
|
Sets the current |
RibbonToolBarEvent
(wx.PyCommandEvent)¶Handles events related to RibbonToolBar
.
__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 RibbonToolBar
.
GetBar
(self)¶Returns an instance of RibbonToolBar
.
PopupMenu
(self, menu)¶Pops up the given menu and returns control when the user has dismissed the menu.
If a menu item is selected, the corresponding menu event is generated and will be processed as usual.
menu – the menu to pop up, an instance of wx.Menu
.
Note
Just before the menu is popped up, wx.Menu.UpdateUI
is called to ensure
that the menu items are in the correct state. The menu does not get deleted by
the window.
SetBar
(self, bar)¶Sets the current RibbonToolBar
for this event.
bar – an instance of RibbonToolBar
.