PyANGKernel.GKKernelAction

class GKKernelAction

Actions (implemented as Commands) that can be applied to an object.

Details

This class is the non-GUI equivalent of the GKActionMenu

Inherited by: LinkAnalysisKernelAction, GKObjectKernelAction

Synopsis

Methods

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()

GKKernelAction constructor.

abstractmethod canExecute(target, id)
Parameters:
  • target – .list of GKObject

  • id – str

Return type:

bool

Tests if an action can be executed (the selection is valid, the action exists, the resources are available…)

abstractmethod execute(target, id, taskId)
Parameters:
  • target – .list of GKObject

  • id – str

  • taskId – str

Return type:

bool

Executes a kernel action over a set of objects. Returns true if the action was found.

abstractmethod getActions([target=None])
Parameters:

targetGKObject

Return type:

.list of GKKernelActionEntry

List all possible the actions. The target parameter is deprecated.

getTaskId()
Return type:

str

If the execute command generated a task, its id.