Action

class Action[source]

Bases: QObject, Base

Actions are functions that are called when a certain event happens, such as mouse and keyboard click.

Parameters:
namestr

The name of the action. The key in the configuration dictionary should match the name.

viewercompas_viewer.viewer.Viewer

The viewer object.

configcompas_viewer.configurations.controller_config.ActionConfig

The action configuration.

References

Attributes:
namestr

The name of the action.

viewercompas_viewer.viewer.Viewer

The viewer object.

configcompas_viewer.configurations.controller_config.ActionConfig

The action configuration.

keyPySide6.QtCore.Qt.Key

The key of the action.

modifierPySide6.QtCore.Qt.KeyboardModifier

The modifier of the action.

Methods

pressed_action

The behavior of the action when the key is pressed.

released_action

The behavior of the action when the key is released.

Inherited Methods

blockSignals

childEvent

children

connect

connectNotify

customEvent

deleteLater

disconnect

disconnectNotify

dumpObjectInfo

dumpObjectTree

dynamicPropertyNames

emit

event

eventFilter

findChild

findChildren

inherits

installEventFilter

isQuickItemType

isSignalConnected

isWidgetType

isWindowType

killTimer

metaObject

moveToThread

objectName

parent

property

receivers

removeEventFilter

sender

senderSignalIndex

setObjectName

setParent

setProperty

signalsBlocked

startTimer

thread

timerEvent

tr