Tool Box Widget (toolbox)
Tool Box Widget
A reimplementation of the QToolBox widget that keeps all the tabs
in a single QScrollArea instance and can keep multiple open tabs.
- class orangecanvas.gui.toolbox.ToolBox(parent: Optional[PyQt5.QtWidgets.QWidget] = None, **kwargs: Any)[source]
Bases:
PyQt5.QtWidgets.QFrameA tool box widget.
- setExclusive(exclusive: bool) None[source]
Set exclusive tabs (only one tab can be open at a time).
- exclusive_
Exclusive tabs
- tabAction(index: int) PyQt5.QtWidgets.QAction[source]
Return open/close action for the tab at index.
- addItem(widget: PyQt5.QtWidgets.QWidget, text: str, icon: PyQt5.QtGui.QIcon = <PyQt5.QtGui.QIcon object>, toolTip: str = '') int[source]
Append the widget in a new tab and return its index.
- insertItem(index: int, widget: PyQt5.QtWidgets.QWidget, text: str, icon: PyQt5.QtGui.QIcon = <PyQt5.QtGui.QIcon object>, toolTip: str = '') int[source]
Insert the widget in a new tab at position index.
See also
- removeItem(index: int) None[source]
Remove the widget at index.
Note
The widget is hidden but is is not deleted. It is up to the caller to delete it.
- createTabButton(widget: PyQt5.QtWidgets.QWidget, text: str, icon: PyQt5.QtGui.QIcon = <PyQt5.QtGui.QIcon object>, toolTip: str = '') PyQt5.QtWidgets.QAbstractButton[source]
Create the tab button for widget.