Python Tkinter App Suitable for Screen

I developed the application using the Tkinter module from Python on my 17 "screen.

Is there any way to make this app suitable for lower resolution screens? I tried to run it on a 14-inch screen, and the application is not suitable.

Thanks.

+5
source share
1 answer

You can get the screen resolution and then enter them in your root.geometry , like this:

 from Tkinker import * root = Tk() width, height = root.winfo_screenwidth(), root.winfo_screenheight() root.geometry('%dx%d+0+0' % (width,height)) root.mainloop() 
+2
source

All Articles