Quick Menu (quickmenu
)¶
Quick Menu¶
A QuickMenu
widget provides lists of actions organized in tabs
with a quick search functionality.
- class orangecanvas.document.quickmenu.QuickMenu(parent=None, **kwargs)[source]¶
Bases:
orangecanvas.gui.framelesswindow.FramelessWindow
A quick menu popup for the widgets.
The widgets are set using
QuickMenu.setModel()
which must be a model as returned byQtWidgetRegistry.model()
- triggered(QAction)¶
- hovered(QAction)¶
- setSizeGripEnabled(enabled)[source]¶
Enable the resizing of the menu with a size grip in a bottom right corner (enabled by default).
- addPage(name, page)[source]¶
Add the page (
MenuPage
) with name and return it’s index. The page.icon() will be used as the icon in the tab bar.
- popup(pos=None, searchText='')[source]¶
Popup the menu at pos (in screen coordinates). ‘Search’ text field is initialized with searchText if provided.
- class orangecanvas.document.quickmenu.MenuPage(parent=None, title='', icon=<PyQt5.QtGui.QIcon object>, **kwargs)[source]¶
Bases:
orangecanvas.gui.tooltree.ToolTree
A menu page in a
QuickMenu
widget, showing a list of actions. Shown actions can be disabled by setting a filtering function using thesetFilterFunc()
.