We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On MacOS 13.5, the height_mm and width_mm fields of the monitor info are reported as None.
height_mm
width_mm
None
I saw that you're not doing OSX dev; but I figured I'd throw this here to track the issue anyways.
The text was updated successfully, but these errors were encountered:
Maybe some helpful soul will shed some light on a solution at https://stackoverflow.com/questions/77469944/getting-physical-dimensions-of-screen-in-macos.
Sorry, something went wrong.
Found this: https://gist.github.com/nicksherman/33f400e8577f93ab6ecdecdd4306985a
Can confirm above gist works; tested getting it on macOS 13.5 given an NSScreen like this:
NSScreen
screen = NSScreen.screens()[index] number = screen.deviceDescription()["NSScreenNumber"] width_mm, height_mm = CGDisplayScreenSize(number)
Will try to make a PR.
It does introduce an extra dependency on pyobjc-framework-Quartz on macOS but I don't think that is a problem.
pyobjc-framework-Quartz
No branches or pull requests
On MacOS 13.5, the
height_mm
andwidth_mm
fields of the monitor info are reported asNone
.I saw that you're not doing OSX dev; but I figured I'd throw this here to track the issue anyways.
The text was updated successfully, but these errors were encountered: