Class: QgsProcessingActionContext

Encapsulates the context in which a Processing action is executed.

Added in version 4.4.

List of all members, including inherited members

Methods

algorithmName

Returns the name of the algorithm associated with the action.

parentWidget

Returns the parent widget to use for dialogs constructed when triggering the action.

providerId

Returns the ID of the provider associated with the action.

setAlgorithmName

Sets the name of the algorithm associated with the action.

setParentWidget

Sets the parent widget to use for dialogs constructed when triggering the action.

setProviderId

Sets the ID of the provider associated with the action.

class qgis.gui.QgsProcessingActionContext[source]

Bases: object

algorithmName(self) → str[source]

Returns the name of the algorithm associated with the action.

Return type:

str

parentWidget(self) → QWidget | None[source]

Returns the parent widget to use for dialogs constructed when triggering the action.

Return type:

QWidget|None

providerId(self) → str[source]

Returns the ID of the provider associated with the action.

See also

setProviderId()

Return type:

str

setAlgorithmName(self, name: str | None)[source]

Sets the name of the algorithm associated with the action.

See also

algorithmName()

Parameters:

name (str|None)

setParentWidget(self, widget: QWidget | None)[source]

Sets the parent widget to use for dialogs constructed when triggering the action.

See also

parentWidget()

Parameters:

widget (QWidget|None)

setProviderId(self, id: str | None)[source]

Sets the ID of the provider associated with the action.

See also

providerId()

Parameters:

id (str|None)