I've tried the following methods but none would work on Linux
from win32.win32api import GetSystemMetrics
print(GetSystemMetrics(0), GetSystemMetrics(1))
from ctypes import windll
info = windll.user32
print(info.GetSystemMetrics(0), info.GetSystemMetrics(1))
from tkinter import *androot = Tk()androot.withdraw()androot.winfo_screenheight()androot.winfo_screenwidth()tkinter, it would be worth posting an answer. I posted one usingxlibbut that is not in the standard library, so obviously if there is something withtkinter, that would be an advantage. But it would be good if there is a way in tkinter that does not involve opening a new window (even if only temporarily).tkinterneeds a window, but try my answer out?