pyqtribbon.menu module
- class pyqtribbon.menu.RibbonMenu(title: str = '', parent=None)[source]
- class pyqtribbon.menu.RibbonMenu(parent=None)
Bases:
QMenuCreate a new panel.
- Parameters:
title – The title of the menu.
parent – The parent widget.
- addFormLayoutWidget() → QFormLayout[source]
Add a form layout widget to the menu.
- Returns:
The form layout.
- addGridLayoutWidget() → QGridLayout[source]
Add a grid layout widget to the menu.
- Returns:
The grid layout.
- addHorizontalLayoutWidget() → QHBoxLayout[source]
Add a horizontal layout widget to the menu.
- Returns:
The horizontal layout.
- addLabel(text: str = '', alignment=1)[source]
Add a label to the menu.
- Parameters:
text – The text of the label.
alignment – The alignment of the label.
- addVerticalLayoutWidget() → QVBoxLayout[source]
Add a vertical layout widget to the menu.
- Returns:
The vertical layout.
- class pyqtribbon.menu.RibbonPermanentMenu(title: str = '', parent=None)[source]
- class pyqtribbon.menu.RibbonPermanentMenu(parent=None)
Bases:
RibbonMenuA permanent menu.
Create a new panel.
- Parameters:
title – The title of the menu.
parent – The parent widget.
- actionAdded(QtWidgets.QAction)[source]
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- hideEvent(self, a0: QHideEvent | None)[source]