In my Tkinter application I use diagrams, texts and images with a fixed length and height. If I run the application on another computer with the same screen resolution as the computer on which I wrote the Tkinter application, everything will be displayed correctly.
If the Tkinter application is run on a computer with a lower screen resolution, the images, texts and diagrams are partly cut off. They are therefore no longer displayed fully.
To illustrate this, I have created a minimal example, where I use buttons with fixed lengths:
from tkinter import *
root = Tk()
root.attributes('-zoomed', True) # For Linux user: maximaizes window
#root.state('zoomed') # For windows user use root.state('zoomed')
#instead
Button(root, text = "Replacement for the main content ", padx = 450, pady=30).grid(row = 0, column = 0)
Button(root, text = "Replacement for an image, diagram, text", pady = 20).grid(row = 0, column = 1, padx = 5)
mainloop()
If I use the same screen resolution as I used when creating the application (in this case 1366 x 768), everything will be displayed correctly:
For a lower resolution (1280 x 720) a part is cut off:
Do either of you know how I can fix this problem?