Handles events related to RibbonToolBar
.
__init__ |
Default class constructor. |
GetBar |
Returns an instance of RibbonToolBar . |
PopupMenu |
Pops up the given menu and returns control when the user has dismissed the menu. |
SetBar |
Sets the current RibbonToolBar for this event. |
RibbonToolBarEvent
(wx.PyCommandEvent)¶Handles events related to RibbonToolBar
.
__init__
(self, command_type=None, win_id=0, bar=None)¶Default class constructor.
Parameters: |
|
---|
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.
Parameters: | 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.
Parameters: | bar – an instance of RibbonToolBar . |
---|