-
Notifications
You must be signed in to change notification settings - Fork 39
Get refresh rate #79
Copy link
Copy link
Open
Description
Hello, could you please implement an attribute called .refresh_rate?
I only managed to get the primary monitor's refresh rate using:
# pip install pywin32
import win32api
device = win32api.EnumDisplayDevices()
settings = win32api.EnumDisplaySettings(device.DeviceName, -1)
hz = settings.DisplayFrequency
print(hz)I don't know how/if this works on other OSes and with multi-monitor setups.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels