Python Tkinter application fit on screen Python Tkinter application fit on screen tkinter tkinter

Python Tkinter application fit on screen


You can get the screen resolution then input them in your root.geometry, this way:

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