Action

See also

SAMSON API: SBGAction

class samson.GUI.Action.Action(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

This class is the base class for actions.

Overloaded function.

  1. __init__(self: samson.GUI.Action.Action, UUID: samson.Core.Container.UUID) -> None

  2. __init__(self: samson.GUI.Action.Action, text: str, UUID: samson.Core.Container.UUID) -> None

setup(self: samson.GUI.Action.Action, arg0: samson.DataModel.DataGraph.NodeIndexer) bool

Initializes the action

trigger(self: samson.GUI.Action.Action) None

Triggers the action

property UUID

Returns the action’s UUID

property favoriteFlag

The favorite flag

property highlightingFlag

The highlighting flag

property isDiscoverable

Returns true if can be discovered by the user

property isLocked

Returns true if the action is locked

property name

Returns the action’s class name