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.
- viewer
compas_viewer.viewer.Viewer
The viewer object.
- config
compas_viewer.configurations.controller_config.ActionConfig
The action configuration.
References
- Attributes:
- namestr
The name of the action.
- viewer
compas_viewer.viewer.Viewer
The viewer object.
- config
compas_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
The behavior of the action when the key is pressed.
The behavior of the action when the key is released.
Inherited Methods