Python Forum
[Tkinter] proportional fonts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] proportional fonts
#3
You can define a font to use for all your controls and at startup set that to be 14 or 18 points. You can do the same thing with a style. Either way, you have to write the code that decides what font to use. Tkinter will not do that. I do not think this is a good idea.

The correct answer is that your application should be resizeable to some minimum size that will work at all reasonable screen resolution without changing font sizes. Your windows should be resizeable by your user, and you should use layout managers that move and resize the widgets based on the size of the window, not the size of the screen. If you have layouts that cannot be resized nicely they should have scrollbars so you can move the larger scrolled view around to look at different parts (like looking at a large document in a text editor).

User interface design is not easy.
Reply


Messages In This Thread
proportional fonts - by DPaul - Aug-17-2022, 05:19 PM
RE: proportional fonts - by menator01 - Aug-17-2022, 05:40 PM
RE: proportional fonts - by deanhystad - Aug-17-2022, 05:51 PM
RE: proportional fonts - by DPaul - Aug-18-2022, 05:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQT Problems with multiple fonts DrakeSoft 2 1,629 Feb-21-2024, 04:30 AM
Last Post: wilkinsonwilfrid
  [Tkinter] Custom Fonts GalaxyCoyote 1 4,864 Dec-25-2019, 06:56 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020