Class: QgsProcessingParameterBoolean

A boolean parameter for processing algorithms.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsProcessingParameterBoolean

Base classes

QgsProcessingParameterDefinition

Base class for the definition of processing parameters.

Constructor

__init__

Abstract Methods

clone

Static Methods

fromScriptCode

Creates a new parameter using the definition from a script code.

typeName

Returns the type name for the parameter class.

class qgis.core.QgsProcessingParameterBoolean[source]

Bases: QgsProcessingParameterDefinition

__init__(name: str | None, description: str | None = '', defaultValue: Any = None, optional: bool = False)

Constructor for QgsProcessingParameterBoolean.

Parameters:
  • name (str|None)

  • description (str|None = '')

  • defaultValue (Any = None)

  • optional (bool = False)

__init__(a0: QgsProcessingParameterBoolean)
Parameters:

a0 (QgsProcessingParameterBoolean)

abstract clone(self) → QgsProcessingParameterDefinition | None[source]
Return type:

QgsProcessingParameterDefinition|None

static fromScriptCode(name: str | None, description: str | None, isOptional: bool, definition: str | None) → QgsProcessingParameterBoolean | None

Creates a new parameter using the definition from a script code.

Parameters:
  • name (str|None)

  • description (str|None)

  • isOptional (bool)

  • definition (str|None)

Return type:

QgsProcessingParameterBoolean|None

static typeName() → str[source]

Returns the type name for the parameter class.

Return type:

str