Main Module¶
Pulls everything together.
-
joy.vui.main.
error_guard
(loop, n=10)[source]¶ Run a loop function, retry for
n
exceptions. Prints tracebacks onsys.stderr
.
-
joy.vui.main.
init
()[source]¶ Initialize the system.
- Init PyGame
- Create main window
- Start the PyGame clock
- Set the event mask
- Create the PersistTask
-
joy.vui.main.
init_context
(screen, clock, pt)[source]¶ More initialization
- Create the Joy dictionary
- Create the Display
- Open the log, menu, and scratch text viewers, and the stack pickle
- Start the main loop
- Create the World object
- Register PersistTask and World message handlers with the Display
- Load user function definitions.