wijjit.core.events.ActionEvent

class wijjit.core.events.ActionEvent(event_type=None, timestamp=<factory>, cancelled=False, action_id='', source_element_id=None, data=None)[source]

Action event triggered by UI elements.

Fired when a button is clicked or similar actions.

Parameters:
  • action_id (str) – Identifier for the action

  • source_element_id (str or None) – ID of the element that triggered the action

  • data (Any) – Additional data associated with the action

  • event_type (EventType | None)

  • timestamp (datetime)

  • cancelled (bool)

Variables:
  • action_id (str) – Identifier for the action

  • source_element_id (str or None) – ID of the element that triggered the action

  • data (Any) – Additional data associated with the action

__init__(event_type=None, timestamp=<factory>, cancelled=False, action_id='', source_element_id=None, data=None)
Parameters:
Return type:

None

Methods

__init__([event_type, timestamp, cancelled, ...])

cancel()

Cancel the event.

Attributes

action_id

cancelled

data

event_type

source_element_id

timestamp

action_id: str = ''
source_element_id: str | None = None
data: Any = None
__post_init__()[source]

Initialize event type.

Return type:

None