Compare commits

...

5 Commits

Author SHA1 Message Date
357ffc67e5 Update _version.py
Signed-off-by: Jayofelony <oudshoorn.jeroen@gmail.com>
2024-04-26 09:19:13 +02:00
ea8fb5e533 Merge pull request #139 from RKouchoo/master
Fix 3.7 orientation
2024-04-26 06:37:39 +02:00
31afd6d0ba Merge pull request #138 from kszabi1/fix-ui-components-draw
Fix [#137 issue]: Incorrect use of assignment operator (=) instead of comparison operator (==) in draw method
2024-04-26 06:37:28 +02:00
b38274e652 Fix 3.7 orientation 2024-04-26 13:21:55 +10:00
518e8c219c Fix incorrect use of assignment operator (=) instead of comparison operator (==) in draw method of ui/components.py 2024-04-26 01:34:26 +02:00
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
__version__ = '2.9.0' __version__ = '2.9.1'

View File

@ -19,7 +19,7 @@ class Bitmap(Widget):
self.image = Image.open(path) self.image = Image.open(path)
def draw(self, canvas, drawer): def draw(self, canvas, drawer):
if self.color = 0xFF: if self.color == 0xFF:
self.image = ImageOps.invert(self.image) self.image = ImageOps.invert(self.image)
canvas.paste(self.image, self.xy) canvas.paste(self.image, self.xy)

View File

@ -10,8 +10,8 @@ class Waveshare3in7(DisplayImpl):
def layout(self): def layout(self):
fonts.setup(10, 8, 10, 18, 25, 9) fonts.setup(10, 8, 10, 18, 25, 9)
self._layout['width'] = 480 self._layout['width'] = 280
self._layout['height'] = 280 self._layout['height'] = 480
self._layout['face'] = (0, 43) self._layout['face'] = (0, 43)
self._layout['name'] = (0, 14) self._layout['name'] = (0, 14)
self._layout['channel'] = (0, 0) self._layout['channel'] = (0, 0)