Class: QgsCodeInterpreter¶
An interface for code interpreters.
Added in version 3.30.
- class qgis.gui.QgsCodeInterpreter[source]¶
Bases:
object- currentState(self) int[source]¶
Returns the current interpreter state.
The actual interpretation of the returned values depend on the interpreter subclass.
- Return type:
int
- exec(self, command: str | None) int[source]¶
Executes a
commandin the interpreter.Returns an interpreter specific state value.
- Parameters:
command (Optional[str])
- Return type:
int