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

Bug(widget.py): Line 856 - Image.CUBIC doesn't exist anymore, should be replaced with Image.Resampling.BICUBIC #556

Closed JoshuaBarrass closed 6 months ago

JoshuaBarrass commented 6 months ago

Desktop (please complete the following information):

Python Version - 3.11.7 ttkbootstrap - 1.10.1 OS - Windows 11

Describe the bug

On line 856, within _draw_meter - Image.CUBIC isn't a resampling type.

All available resampling types available : https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resize https://pillow.readthedocs.io/en/stable/handbook/concepts.html#concept-filters

Proposed replacement - Image.Resampling.BICUBIC

Once change, bug is fixed

To Reproduce

Attempting to use Meter from ttkbootstrap

exact call - self.progress_meter = Meter( self, metersize=100, padding=5, amountused=self.progress_percent, metertype="semi", subtext="Progress", interactive=False, textright="%" )

Expected behavior

No response

Screenshots

image

Additional context

No response

rdbende commented 6 months ago

Please stop reporting issues about this error. It's already fixed — though that version is not yet on Pypi.