israel-dryer / ttkbootstrap

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

Updated Pillow Dependencies, Renamed Constants Fixes #480, #479, #478, #475, #474, #473, #472, #467 #490

Closed Intellbg closed 10 months ago

Intellbg commented 1 year ago

Lastest pillow renamed it constants. This PR has updated Pillow from v 8 to 10. And renamed all constants Fixes #480 ,Fixes #479 ,Fixes #478 ,Fixes #475 ,Fixes #474 ,Fixes #473 ,Fixes #472 ,Fixes #467

rdbende commented 1 year ago

@Intellbg You could also add "Fixes #480, #479, #478, #475, #474, #473, #472, #467" to the description, so they will get automatically closed on merging.

Intellbg commented 1 year ago

@rdbende is that what needed to be done?

rdbende commented 1 year ago

Well, not quite 😅 Put it in the description of the PR, it doesn't work in the title.

Upon saving the modifications it will list the linked issues in the sidebar, like this:

grafik

wogho commented 8 months ago

Traceback (most recent call last): File "/root/ttkbootstrap/src/ttkbootstrap/main.py", line 298, in bagel = setup_demo(app) File "/root/ttkbootstrap/src/ttkbootstrap/main.py", line 173, in setup_demo m = ttk.Meter( File "/usr/local/lib/python3.10/dist-packages/ttkbootstrap/widgets.py", line 718, in init self._setup_widget() File "/usr/local/lib/python3.10/dist-packages/ttkbootstrap/widgets.py", line 759, in _setup_widget self._draw_meter() File "/usr/local/lib/python3.10/dist-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'?

pip uninstall Pillow pip install Pillow==8.4.0

windymilla commented 4 months ago

pip uninstall Pillow pip install Pillow==8.4.0

In case it's helpful to anyone wanting a temporary fix while awaiting a new release of ttkbootstrap...

Using poetry to install, "Pillow 8.4.0 does not support Python 3.11 and does not provide prebuilt Windows binaries."

However, Pillow 9.5.0 works fine for me, and types-Pillow is also available for that version.

setop commented 3 months ago

this has not been pushed to pypi :(

$ pip freeze
pillow==10.4.0
ttkbootstrap==1.10.1