[Pythonmac-SIG] info on CoreGraphics

Just van Rossum just@letterror.com
Thu, 18 Apr 2002 19:38:46 +0200


eric wrote:

> I have a rough set of routines that can draw paths (no bezier stuff) and text
> written in wxPython (the first target platform).  I'm to the point where I 
> need to start testing "corners" of the design, and I'd like to compare with 
> how quartz handles them.
> 
> So, to this point, I've been writing little routines in C using Project 
> Builder to generate a PDF file that I can look at to see what Quartz does 
> (I've attachedone at the end).  I'd really rather write these in (Mac)Python, 
> and it seems like it should be possible.  I see a Carbon.CoreGraphics module, 
> but I didn't find anything but constants in it.  Am I looking in the wrong 
> place for the CoreGraphics routines, or have they just not made it into the 
> package yet?

Carbon.CoreGraphics is the constants module, the funcitonality is in Carbon.CG.
The wrapper is by no means complete (eg. CGPDFContextCreate() isn't there
yet...), but your input and contributions are very welcome!

Just