Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RisoGalloExpresso opened this issue Apr 1, 2023 · 1 comment

Comments

@RisoGalloExpresso
Copy link

RisoGalloExpresso commented Apr 1, 2023

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants