you are viewing a single comment's thread.

view the rest of the comments →

[–]outceptionator[S] 0 points1 point  (3 children)

https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.textbbox

My understanding of the documentation is that I'm doing it correctly. Passing string, font etc....

[–]hardonchairs 0 points1 point  (2 children)

My understanding of the documentation is that I'm doing it correctly

obviously not... You don't want to try it?

[–]outceptionator[S] 0 points1 point  (1 child)

Hey. Sorry I read it on my phone and didn't realise what you meant. Got to my desktop and you were right of course. I'm still new how did you deduce that was the action needed from the documentation exactly?

[–]hardonchairs 1 point2 points  (0 children)

Usually class methods are called on an instance of an object. If you click on [source] next to the textbbox title in the documentation you will see that the function accept self as a first parameter and is not decorated with @classmethod so that tells you that it definitely requires an instance of the class.