8.5.6.3. pymodaq_gui.utils.dock module

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

Bases: Dock

Methods

setOrientation([o, force])

Sets the orientation of the title bar for this Dock.

dock_focused

removeWidgets

removeWidgets()[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

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

class pymodaq_gui.utils.dock.DockArea(parent=None, temporary=False, home=None)[source]

Bases: DockArea, QObject

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

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision