resolution ratio #336
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is possible, but it will take some changes to the architecture of the library to achieve. This is one the roadmap for version 2.0. There is a scaling function in tcl/tk that can be used. However, the images that I'm using for the styles are created with the scaling at the time the styles is generated, so a change to scaling would not affect this image-based styles currently. However, this does sounds like a reasonable thing to do, so I will look at how this can be implemented in version 2.0 of ttkbootstrap which I'm working on now. To document this for my own notes later... I need to create and generate a <> event when the resolution changes. Add an event handler (on_resolution_changed) that will erase the style assets and registry. Then, generate a '<>' event that will automatically cause the styles for all widgets to rebuild with the new scaling. I'll need to test whether or not the widgets resize their own geometry as this is an open question in the current documentation (perhaps widget specific?). |
Beta Was this translation helpful? Give feedback.
This is possible, but it will take some changes to the architecture of the library to achieve. This is one the roadmap for version 2.0.
There is a scaling function in tcl/tk that can be used. However, the images that I'm using for the styles are created with the scaling at the time the styles is generated, so a change to scaling would not affect this image-based styles currently.
However, this does sounds like a reasonable thing to do, so I will look at how this can be implemented in version 2.0 of ttkbootstrap which I'm working on now.
To document this for my own notes later... I need to create and generate a <> event when the resolution changes. Add an event handler (on_resolution_chang…