israel-dryer / TkFontAwesome

Use any of the 1k+ free FontAwesome icons in your tkinter application.
MIT License
64 stars 11 forks source link

How to scale automatically an icon when the display settings changes? #6

Open RisoGalloExpresso opened 1 year ago

RisoGalloExpresso commented 1 year ago

it's not a real issue but, is there a way to scale automatically an icon put a tk button/label widget when the display settings changes? it already happens for the other tk widgets. for example, the text placed in a tk label, changes its resolution automatically, but an SVG icon placed in same widget or in another one no, and the function "svg_to_image" just allow you to specify a specific scale value, so how can I solve this issue?

jshipley commented 7 months ago

All TkFontAwesome does is create a tksvg.SvgImage object. There is already a scale parameter in the icon_to_image function that gets passed on to SvgImage.

Any issues with image scaling should be sent to python-tksvg (https://github.com/TkinterEP/python-tksvg)

@israel-dryer I recommend closing this issue