import tkinter as tk screen = tk.Tk() width = screen.winfo_screenwidth() height = screen.winfo_screenheight()