Reading pixels with ScreenDC or ClientDC on Mac

Hi,

I was playing around with one of my old examples (https://gist.github.com/driscollis/598f7fc773995beda0a87bf2be30b367) where basically I want to have wxPython take a screenshot of itself. This code works fine on Windows and Linux, but all I get is a black square on Mac El Capitan. I saw this discussion from 2007 that talk about this issue:

http://wxpython-users.1045709.n5.nabble.com/ScreenDC-wxMac-td2358205.html

It’s been almost 10 years. Is there some workaround?

Thanks,

Mike

···

Mike Driscoll

Blog: http://blog.pythonlibrary.org

Books: Python 101, Python 201: Intermediate Python