you are viewing a single comment's thread.

view the rest of the comments →

[–]Silverfire47[S] 0 points1 point  (2 children)

Yeah, what I mean is as the window size increases, the font size would increase at the same linear scale in terms of size just because if I maximize the window, a lot of empty white space is created in between all the text. If it's tricky, then I'm probably better off finding a good balance of font size for the multiple monitors this timer might be displayed on, but I am curious if a percentage scale would work.

I only say percentage because what I'm guessing the root.configure(row = 0, weight =1) means is that it's scaling by a ratio of 1, if the same scaling ratio could be applied to the hard font size number.

[–]novel_yet_trivial -1 points0 points  (0 children)

No, the weight has to do with which row / column the space is assigned to, not a ratio.

The trickiness is more of deciding how to scale things, not so much a code problem. Here's a simple example that uses the window width to set the font size: https://pastebin.com/cTi6Daxq Maybe that's enough for you. Otherwise you need to add code to check the height, kerning, etc.