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
This commit is contained in:
Jayofelony
2024-04-26 06:37:28 +02:00
committed by GitHub

View File

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