Collapsible Dock Widget (dock)
Collapsible Dock Widget
A dock widget that can be a collapsed/expanded.
- class orangecanvas.gui.dock.CollapsibleDockWidget(*args: Any, **kwargs: Any)[source]
Bases:
PyQt5.QtWidgets.QDockWidgetThis
QDockWidgetsubclass overrides the close header button to instead collapse to a smaller size. The contents to show when in each state can be set using thesetExpandedWidget()andsetCollapsedWidget().Note
Do not use the base class
QDockWidget.setWidget()method to set the dock contents. UsesetExpandedWidget()andsetCollapsedWidget()instead.- expandedChanged
Emitted when the dock widget’s expanded state changes.
- expanded() bool[source]
Is the dock widget in expanded state. If True the
expandedWidgetwill be shown, andcollapsedWidgetotherwise.
- expanded_
Is the dock widget in expanded state. If True the
expandedWidgetwill be shown, andcollapsedWidgetotherwise.
- setExpandedWidget(widget: PyQt5.QtWidgets.QWidget) None[source]
Set the widget with contents to show while expanded.
- expandedWidget() Optional[PyQt5.QtWidgets.QWidget][source]
Return the widget previously set with
setExpandedWidget, orNoneif no widget has been set.
- setCollapsedWidget(widget: PyQt5.QtWidgets.QWidget) None[source]
Set the widget with contents to show while collapsed.
- collapsedWidget() Optional[PyQt5.QtWidgets.QWidget][source]
Return the widget previously set with
setCollapsedWidget, orNoneif no widget has been set.