Collapsible Dock Widget (dock
)¶
Collapsible Dock Widget¶
A dock widget that can be a collapsed/expanded.
-
class
orangecanvas.gui.dock.
CollapsibleDockWidget
(*args, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QDockWidget
This
QDockWidget
subclass overrides the close header button to instead collapse to a smaller size. The contents 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 docks contents. Use set[Expanded|Collapsed]Widget instead.-
expandedChanged
¶ Emitted when the dock widget’s expanded state changes.
-
expanded
()[source]¶ Is the dock widget in expanded state. If True the
expandedWidget
will be shown, andcollapsedWidget
otherwise.
-
expanded_
¶ Is the dock widget in expanded state. If True the
expandedWidget
will be shown, andcollapsedWidget
otherwise.
-
expandedWidget
()[source]¶ Return the widget previously set with
setExpandedWidget
, orNone
if no widget has been set.
-