Last active
January 12, 2017 16:37
-
-
Save akshayaurora/fe719bd83f83faa0721eae5e3d9bb0ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from pyobjus import autoclass | |
>>> from pyobjus.dylib_manager import load_framework, INCLUDE | |
>>> load_framework(INCLUDE.AppKit) | |
>>> nscreen = autoclass('NSScreen') | |
>>> screen_count = int(nscreen.screens().count()) | |
>>> for scr in range(screen_count): | |
... screen = nscreen.screens().objectAtIndex_(0) | |
... print screen.frame.size.width, screen.frame.size.height | |
... | |
1680.0 1050.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment