from win32api import GetSystemMetrics screen_width = GetSystemMetrics(0) screen_height = GetSystemMetrics(1)