Tool Grid Widget (toolgrid
)¶
A widget containing a grid of clickable actions/buttons.
- class orangecanvas.gui.toolgrid.ToolGrid(parent=None, columns=4, buttonSize=PyQt5.QtCore.QSize(- 1, - 1), iconSize=PyQt5.QtCore.QSize(- 1, - 1), toolButtonStyle=3, **kwargs)[source]¶
Bases:
PyQt5.QtWidgets.QFrame
A widget containing a grid of actions/buttons.
Actions can be added using standard
QWidget.addAction(QAction)()
andQWidget.insertAction(int, QAction)()
methods.- Parameters
parent (
QWidget
) – Parent widget.columns (int) – Number of columns in the grid layout.
buttonSize (QSize) – Size of tool buttons in the grid.
iconSize (QSize) – Size of icons in the buttons.
toolButtonStyle (
Qt.ToolButtonStyle
) – Tool button style.
- actionTriggered(QAction)¶
Signal emitted when an action is triggered
Signal emitted when an action is triggered.
- actionHovered(QAction)¶
Signal emitted when an action is hovered
Signal emitted when an action is hovered.
- iconSize()[source]¶
Return the icon size. If no size is set a default style defined size is returned.