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,GKObjectKernelActionSynopsis¶
Methods¶
def
__init__()
Virtual methods¶
def
canExecute()def
execute()def
getActions()def
getTaskId()
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__()¶
GKKernelActionconstructor.- abstractmethod canExecute(target, id)¶
- Parameters:
target – .list of GKObject
id – str
- Return type:
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:
Executes a kernel action over a set of objects. Returns true if the action was found.
- abstractmethod getActions([target=None])¶
- Parameters:
target –
GKObject- Return type:
.list of GKKernelActionEntry
List all possible the actions. The target parameter is deprecated.
If the execute command generated a task, its id.