Core¶
The core module defines a bunch of system-wide “constants” (some colors and PyGame event groups), the message classes for Oberon-style message passing, a “world” class that holds the main context for the system, and a mainloop class that manages the, uh, main loop (the PyGame event queue.)
-
joy.vui.core.
ARROW_KEYS
= frozenset([273, 274, 275, 276])¶ PyGame arrow key events.
-
joy.vui.core.
AVAILABLE_TASK_EVENTS
= set([24, 25, 26, 27, 28, 29, 30, 31])¶ Task IDs that have not been assigned to a task.
-
joy.vui.core.
MOUSE_EVENTS
= frozenset([4, 5, 6])¶ PyGame mouse events.
-
class
joy.vui.core.
ModifyMessage
(sender, subject, **details)[source]¶ For when resources are modified, adds
subject
anddetails
fields.
-
class
joy.vui.core.
OpenMessage
(sender, name)[source]¶ For when resources are modified, adds
name
, content_id``,status
, andtraceback
fields.
-
class
joy.vui.core.
PersistMessage
(sender, content_id, **details)[source]¶ For when resources are modified, adds
content_id
anddetails
fields.
-
joy.vui.core.
TASK_EVENTS
= (24, 25, 26, 27, 28, 29, 30, 31)¶ Keep track of all possible task events.
-
class
joy.vui.core.
TheLoop
(display, clock)[source]¶ The main loop manages tasks and the PyGame event queue and framerate clock.
-
class
joy.vui.core.
World
(stack_id, stack_holder, dictionary, notify, log)[source]¶ This object contains the system context, the stack, dictionary, a reference to the display broadcast method, and the log.