-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
pyautogui.size() on OS X Retina Macbook Pro #12
Comments
What's the version of OS X you have? (The specific version, like Mavericks 10.0.4 or such.) |
Yosemite version 10.10.1 |
Related, not sure if you'd like a separate issue for this: On Mac 10.9.5 with a retina display 1440 x 900, I get
|
I ran a tracer to follow the interpretation of pyautogui and apparently it gets stuck here: platformModule being pyautogui._pyautogui_osx I looked into it and the _size() method makes use of Quartz.CGDisplayPixelsWide(0). Tracing that function gave me this:
Looking at the init file, m is supposed to be QuickLookUI, also in the Quartz folder. I can't tell why the return value is None. |
I also experienced the same issue (MacBook Pro 10.10.3 (Retina, 13-inch, Late 2013)). Though I remedied the issue by replace 0 with Quartz.CGMainDisplayID() in the _size function. Further investigation is required to determine why exactly this issue arose in the first place. def _size():
return Quartz.CGDisplayPixelsWide(Quartz.CGMainDisplayID()), Quartz.CGDisplayPixelsHigh(Quartz.CGMainDisplayID()) |
Hello,
I was going through basic usage of pyautogui and I found that the command
causes my python interpreter to freeze. I tried using it in a file and that also hung. Is this a problem with Retina, OS X, laptops, etc?
Note: the other commands seem to be working properly -- only size is giving me trouble
Thanks
The text was updated successfully, but these errors were encountered: