Class DockWidgetFactoryBase
Build from DockWidgetFactoryBase.h
Krita 4.0.0

The DockWidgetFactoryBase class is the base class for plugins that want to add a dock widget to every window. You do not need to implement this class yourself, but create a DockWidget implementation and then add the DockWidgetFactory to the Krita instance like this:

class HelloDocker(DockWidget): def __init__(self): super().__init__() label = QLabel("Hello", self) self.setWidget(label) self.label = labeldef canvasChanged(self, canvas): self.label.setText("Hellodocker: canvas changed");Application.addDockWidgetFactory(DockWidgetFactory("hello", DockWidgetFactoryBase.DockRight, HelloDocker))

Methods

DockWidgetFactoryBase(_id: str, _dockPosition: DockPosition) defaultCollapsed()bool defaultDockPosition()DockPosition id()str isCollapsable()bool

Member documentation

DockWidgetFactoryBase(_id: str, _dockPosition: DockPosition)
Krita 4.0.0Krita 5.0.0

Parameters

_id(no description provided)
_dockPosition(no description provided)

Return

(no description provided)

defaultCollapsed()bool
Krita 4.0.0

Return

(no description provided)

defaultDockPosition()DockPosition
Krita 4.0.0

Return

(no description provided)

id()str
Krita 4.0.0

Return

(no description provided)

isCollapsable()bool
Krita 4.0.0

Return

(no description provided)