Basj
Basj

Reputation: 46463

Tkinter, canvas, create_text and zooming

Is it normal that Tkinter's Canvas' create_text 's font size doesn't change when I change the Canvas' scale with canvas.scale ?

I thought that, as it is a high level GUI management system, I wouldn't have to resize manually the text done with create_text after a zooming. Isn't this strange, or am I wrong ?

Upvotes: 0

Views: 614

Answers (1)

Donal Fellows
Donal Fellows

Reputation: 137567

It's normal, even if not entirely what you want. The scale method just changes the coordinate lists, but text items only have one of those so they just get (optionally) translated.

This also applies to image and bitmap items. And features of other items like the line width; they're not scaled.

Upvotes: 1

Related Questions