Set display rotation: 0, 90, 180, or 270.
(self, rotation)
| 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): |
no test coverage detected