israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.89k stars 381 forks source link

ttkcreator don’t work #598

Open Alden68 opened 3 weeks ago

Alden68 commented 3 weeks ago

Desktop (please complete the following information):

Ttkboostrap : 1.10.1 Windows 7

Describe the bug

PS C:\Users\alden> py -m ttkcreator Traceback (most recent call last): File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkcreator__main.py", line 471, in <m odule> creator = ThemeCreator() File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkcreator__main.py", line 23, in i nit__ self.demo_widgets = DemoWidgets(self, self.style) File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkcreator\main.py", line 245, in init self.create_left_frame() File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkcreator\main.py", line 445, in cr eate_leftframe m = ttk.Meter( File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkbootstrap\widgets.py", line 718, in _init self._setupwidget() File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkbootstrap\widgets.py", line 759, in setup_widget self._drawmeter() File "C:\Users\alden\AppData\Local\Programs\Python\Python38\lib\site-packages\ttkbootstrap\widgets.py", line 856, in draw_meter img.resize((self._metersize, self._metersize), Image.CUBIC) AttributeError: module 'PIL.Image' has no attribute 'CUBIC' PS C:\Users\alden>

To Reproduce

Python -m ttkcreator

Expected behavior

ttkcreator must work

Screenshots

No response

Additional context

No response

nebhead commented 3 days ago

Seeing the same issue here with Python 3.12

Package Version


pillow 10.4.0 pip 24.0 pygame 2.6.0 pypng 0.20220715.0 qrcode 7.4.2 ttkbootstrap 1.10.1 typing_extensions 4.12.2