Akascape / CTkDesigner-Support

Support page for CTkDesigner - GUI design app for customtkinter
https://ko-fi.com/s/6fca1ae70f
Other
74 stars 0 forks source link

Adding Image to Draw error #13

Closed Ifelsethendo closed 4 months ago

Ifelsethendo commented 5 months ago

Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1892, in call File "customtkinter\windows\widgets\ctk_button.py", line 559, in _clicked self._command() File "CTkDesigner.py", line 1100, in add_path File "ctkdlib\custom_widgets\ctk_draw.py", line 176, in configure self.update() File "ctkdlib\custom_widgets\ctk_draw.py", line 94, in update image = self.saturation(image, self.sat) File "ctkdlib\custom_widgets\ctk_draw.py", line 83, in saturation return ImageEnhance.Color(img).enhance(value) File "PIL\ImageEnhance.py", line 36, in enhance File "PIL\Image.py", line 3230, in blend ValueError: image has wrong mode Exception in Tkinter callback Traceback (most recent call last): File "tkinter\init.py", line 1892, in call File "tkinter\init__.py", line 814, in callit File "ctkdlib\custom_widgets\ctk_draw.py", line 127, in clear self.update() File "ctkdlib\custom_widgets\ctk_draw.py", line 94, in update image = self.saturation(image, self.sat) File "ctkdlib\custom_widgets\ctk_draw.py", line 83, in saturation return ImageEnhance.Color(img).enhance(value) File "PIL\ImageEnhance.py", line 36, in enhance File "PIL\Image.py", line 3230, in blend ValueError: image has wrong mode

Was a black and white PNG that loads fine into a button

64

Akascape commented 5 months ago

@Ifelsethendo Fixed in the library, update ctkdlib to v4.2 pip install ctkdlib --upgrade

Akascape commented 5 months ago

You can change the image after exporting, changes in ctkdesigner will be implemented in next version,