pimoroni / grow-python

Python libs for controlling the Grow HATs
MIT License
55 stars 44 forks source link

fix: mismatch between required Pillow version and monitoring implementation #44

Open xamcost opened 3 weeks ago

xamcost commented 3 weeks ago

Hi there! To begin with, thank you for your amazing products. This tiny PR suggests a fix in example/monitoring.py, consisting of replacing ImageDraw.textsize and FreeTypeFont.getsize by textbbox and getbbox method respectively, since the former have been removed from Pillow versions greater than 9.5, whereas the currently requested version must be greater than 10.

Of course, we could alternatively change the Pillow version requirement. Up to you.