CoreGraphics not found Python on Mac OS

I am trying to run some demos of Quartz in / Developer / Examples / Quartz / Python with Mac 10.5.8 and Python 2.6. However, I get errors that CoreGraphics could not find.

Traceback (most recent call last):
  File "circle.py", line 38, in <module>
    from CoreGraphics import *
ImportError: No module named CoreGraphics

If you look at the Apple documentation, shouldn't it be baked? http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_python/dq_python.html#//apple_ref/doc/uid/TP30001066-CH218-TPXREF101

+3
source share
1 answer

CoreGraphics Apple Apple Python OS X. OS X 10.5 Apple Python 2.6 (Apple 2.5 2.3 ), , Apple, , python.org MacPorts. . Apple 2.5, Quartz PyObjC.

+4

Source: https://habr.com/ru/post/1776574/


All Articles