MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

pager/pagerctl_mock.py:110–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 }
109
110 def __init__(self):
111 self._initialized = False
112 self._rotation = 0
113 self._w = 222
114 self._h = 480
115 self._brightness = 80
116 self._start_ticks = 0
117
118 # Back buffer (drawn to, then flipped)
119 self._surface = None
120 self._screen = None
121
122 # Thread-safe input event queue
123 self._event_queue = collections.deque(maxlen=64)
124 self._event_lock = threading.Lock()
125 self._held_buttons = 0
126
127 # Font cache
128 self._font_cache = {}
129
130 # Image cache
131 self._image_cache = {}
132
133 def _setup_functions(self):
134 """Compatibility stub - real pagerctl sets up ctypes here."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected