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

Method set_rotation

pager/pagerctl_mock.py:178–188  ·  view source on GitHub ↗

Set display rotation: 0, 90, 180, or 270.

(self, rotation)

Source from the content-addressed store, hash-verified

176 # ------------------------------------------------------------------
177
178 def set_rotation(self, rotation):
179 """Set display rotation: 0, 90, 180, or 270."""
180 self._rotation = rotation
181 if rotation in (0, 180):
182 self._w = 222
183 self._h = 480
184 else:
185 self._w = 480
186 self._h = 222
187 if self._initialized:
188 self._create_window()
189
190 @property
191 def width(self):

Callers 1

pagerctl_mock.pyFile · 0.45

Calls 1

_create_windowMethod · 0.95

Tested by

no test coverage detected