Fix incorrect use of assignment operator (=) instead of comparison operator (==) in draw method of ui/components.py

This commit is contained in:
Szabolcs Koleszár
2024-04-26 01:34:26 +02:00
parent 4e07fbf1aa
commit 518e8c219c

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)