root = tk.Tk() root.title("My app") root.update_idletasks() screen_width = root.winfo_screenwidth() - (root.winfo_rootx() - root.winfo_x()) screen_height = root.winfo_screenheight() - (root.winfo_rooty() - root.winfo_y())