You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop (please complete the following information):
ttkbootstrap 1.10.1
Describe the bug
Traceback (most recent call last):
File "C:\Users\raadmin\Documents\weather.py", line 34, in
tempMeter = tb.Meter(root, bootstyle="info",subtextstyle="danger", subtext="Current Temp")
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 718, in init
self._setup_widget()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 759, in _setup_widget
self._draw_meter()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\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'. Did you mean: 'BICUBIC'?
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\tkinter_init.py", line 1967, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 954, in _on_theme_change
self._draw_meter()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\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'
To Reproduce
Have python 3.11 installed.
pip install ttkbootstrap or python -m pip install ttkbootstrap
Run the following code:
create a ttk window and add the following:
Create a meter to visually represent the temperature
As the attribute Image.CUBIC is deprecated (replaced by Image.BICUBIC) and removed in Pillow v10.0.0. Either install an older version (v9.5.0) of Pillow module or create the attribute explicitly before importing ttkbootstrap module:
from PIL import Image
Image.CUBIC = Image.BICUBIC
import ttkbootstrap as ttk
...
Desktop (please complete the following information):
ttkbootstrap 1.10.1
Describe the bug
Traceback (most recent call last):
File "C:\Users\raadmin\Documents\weather.py", line 34, in
tempMeter = tb.Meter(root, bootstyle="info",subtextstyle="danger", subtext="Current Temp")
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 718, in init
self._setup_widget()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 759, in _setup_widget
self._draw_meter()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\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'. Did you mean: 'BICUBIC'?
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\tkinter_init.py", line 1967, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 954, in _on_theme_change
self._draw_meter()
File "C:\Users\raadmin\AppData\Local\Programs\Python\Python311\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'
To Reproduce
Have python 3.11 installed.
pip install ttkbootstrap or python -m pip install ttkbootstrap
Run the following code:
create a ttk window and add the following:
Create a meter to visually represent the temperature
tempMeter = tb.Meter(root, bootstyle="info",subtextstyle="danger", subtext="Current Temp")
tempMeter.pack(pady=30)
Expected behavior
Should see a Meter with a number and a visual representation.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: