8.6.8.5. pymodaq_gui.utils.dock module

class pymodaq_gui.utils.dock.Dock(name, *args, fontSize='20px', **kwargs)[source]

Bases: Dock

Attributes:
grid_layout

This Dock’s internal grid layout, across pyqtgraph versions

Methods

setOrientation([o, force])

Sets the orientation of the title bar for this Dock.

dock_focused

removeWidget

removeWidgets

removeWidget(widget, close=True)[source]
removeWidgets(close=True)[source]
setOrientation(o='auto', force=False)[source]

Sets the orientation of the title bar for this Dock. Must be one of ‘auto’, ‘horizontal’, or ‘vertical’. By default (‘auto’), the orientation is determined based on the aspect ratio of the Dock.

dock_focused
property grid_layout: QGridLayout

This Dock’s internal grid layout, across pyqtgraph versions

pyqtgraph renamed this attribute from layout to layout_ in versions after 0.14 (the old name shadowed QWidget.layout()); older versions only have layout.

Note: an empty QGridLayout is falsy (Qt gives it __len__ via count()), so this must check for None rather than use or.

staticMetaObject = PySide6.QtCore.QMetaObject("Dock" inherits "Dock": Methods:   #35 type=Signal, signature=dock_focused(QString), parameters=QString )
class pymodaq_gui.utils.dock.DockArea(parent=None, temporary=False, home=None)[source]

Bases: DockArea

Custom Dockarea class subclassing from the standard DockArea class and QObject so it can emit a signal when docks are moved around (one subclassed method: moveDock) .. seealso:: pyqtgraph.dockarea

Methods

moveDock(dock, position, neighbor)

Move an existing Dock to a new location.

addTempArea

dock_signal

addTempArea()[source]
moveDock(dock, position, neighbor)[source]

Move an existing Dock to a new location.

dock_signal
staticMetaObject = PySide6.QtCore.QMetaObject("DockArea" inherits "DockArea": Methods:   #34 type=Signal, signature=dock_signal() )