pyqtribbon.gallery
Module Contents
Classes
The popup widget for the gallery widget. |
|
Gallery list widget. |
|
Gallery button. |
|
Gallery popup list widget. |
|
A widget that displays a gallery of buttons. |
- class pyqtribbon.gallery.RibbonPopupWidget[source]
Bases:
qtpy.QtWidgets.QFrameThe popup widget for the gallery widget.
- class pyqtribbon.gallery.RibbonGalleryListWidget(parent=None)[source]
Bases:
qtpy.QtWidgets.QListWidgetGallery list widget.
- class pyqtribbon.gallery.RibbonGalleryButton[source]
Bases:
qtpy.QtWidgets.QToolButtonGallery button.
- class pyqtribbon.gallery.RibbonGalleryPopupListWidget(parent=None)[source]
Bases:
RibbonGalleryListWidgetGallery popup list widget.
- class pyqtribbon.gallery.RibbonGallery(minimumWidth=800, popupHideOnClick=False, parent=None) RibbonGallery(parent=None)[source]
Bases:
qtpy.QtWidgets.QFrameA widget that displays a gallery of buttons.
- popupMenu() pyqtribbon.menu.RibbonPermanentMenu[source]
Return the popup menu.
- setPopupWindowSize(size: qtpy.QtCore.QSize)[source]
Set the size of the popup window
- Parameters:
size – size of the popup window
- setPopupHideOnClick(popupHideOnClick: bool)[source]
Set the hide on click flag
- Parameters:
popupHideOnClick – hide on click flag
- addButton(text: str = None, icon: qtpy.QtGui.QIcon = None, slot=None, shortcut=None, tooltip=None, statusTip=None, checkable=False) pyqtribbon.toolbutton.RibbonToolButton[source]
Add a button to the gallery
- Parameters:
text – text of the button
icon – icon of the button
slot – slot to call when the button is clicked
shortcut – shortcut of the button
tooltip – tooltip of the button
statusTip – status tip of the button
checkable – checkable flag of the button.
- Returns:
the button added
- addToggleButton(text: str = None, icon: qtpy.QtGui.QIcon = None, slot=None, shortcut=None, tooltip=None, statusTip=None) pyqtribbon.toolbutton.RibbonToolButton[source]
Add a toggle button to the gallery
- Parameters:
text – text of the button
icon – icon of the button
slot – slot to call when the button is clicked
shortcut – shortcut of the button
tooltip – tooltip of the button
statusTip – status tip of the button.
- Returns:
the button added