App Lifecycle
Pymordial builds reliability through state awareness.
State Machine
Every PymordialApp has an internal StateMachine.
- Launch:
open()transitions state toLOADING. - Wait: The controller checks for a "Ready Element" (e.g. Main Menu).
- Ready: When found, state transitions to
READY. - Close:
close()transitions state toCLOSED.
This prevents scripts from interacting with an app before it is ready.