Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-13 Thread Michael Hudson
Chris Barker [EMAIL PROTECTED] writes:

 Nicholas Riley wrote:

Apple's python seamed to come with the CoreGraphics module. Can I get 
that same module for python2.4.1 (form undefined.org)? If so, how?

OS-X 10.3, if it matters.
 
 Nope, the module is closed-source (most likely because it uses
 CoreGraphics/Cocoa SPI to do crazy stuff enabling you to draw without
 a windowserver connection).

 Darn, but thanks for the info.

You might just be able to use the .so with Python 2.4.  You'll get
warnings, but it will *probably* Just Work (I don't think the C API
changed very much 2.3 - 2.4).

Cheers,
mwh

-- 
6. The code definitely is not portable - it will produce incorrect 
   results if run from the surface of Mars.
   -- James Bonfield, http://www.ioccc.org/2000/rince.hint
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Chris Barker


Nicholas Riley wrote:

Apple's python seamed to come with the CoreGraphics module. Can I get 
that same module for python2.4.1 (form undefined.org)? If so, how?

OS-X 10.3, if it matters.
 
 Nope, the module is closed-source (most likely because it uses
 CoreGraphics/Cocoa SPI to do crazy stuff enabling you to draw without
 a windowserver connection).

Darn, but thanks for the info.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Ronald Oussoren


On 12-sep-2005, at 21:44, Chris Barker wrote:




Nicholas Riley wrote:


Apple's python seamed to come with the CoreGraphics module. Can I  
get

that same module for python2.4.1 (form undefined.org)? If so, how?

OS-X 10.3, if it matters.



Nope, the module is closed-source (most likely because it uses
CoreGraphics/Cocoa SPI to do crazy stuff enabling you to draw without
a windowserver connection).



Darn, but thanks for the info.


I'm pretty sure someone mentioned they had written their own  
CoreGraphics wrappers some time back on this list.


Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Robert Kern
Ronald Oussoren wrote:

 I'm pretty sure someone mentioned they had written their own 
 CoreGraphics wrappers some time back on this list.

That would be me. I've extracted it from the Kiva tree as a standalone
module. This is just a very preliminary release, so there's no
documentation beyond the source. It's released under the BSD license.

http://starship.python.net/crew/kernr/source/ABCGI-0.0.0.tar.gz
http://starship.python.net/crew/kernr/source/ABCGI-0.0.0-py2.4-macosx-10.4-ppc.egg

I haven't yet adapted to the new scheme for getting a CoreGraphics
context in PyObjC. Patches are welcome, of course.

-- 
Robert Kern
[EMAIL PROTECTED]

In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die.
  -- Richard Harter
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig