UiInstruction

class UiInstruction[source]

Bases: BaseInstruction

Define the common interface for UI instructions.

abstract property id: int

Return the unique UI instruction identifier.

Returns:

UI instruction identifier.

Return type:

int

abstractmethod perform(ui: BaseUi, *args, **kwargs)[source]

Execute the instruction for the provided UI context.

Parameters:
  • ui (BaseUi) – UI instance used during execution.

  • args – Additional positional arguments for the execution flow.

  • kwargs – Additional keyword arguments for the execution flow.