Re: Tasks
Matthew Schinckel <[email protected]> Wed, 25 Feb 2004 17:41:24 +1030
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
On 21/02/2004, at 12:09 AM, Alex Martelli wrote: > On Friday 20 February 2004 01:27 pm, Matthew Schinckel wrote: > ... >> There is already a group of (apple supplied?) shared libraries that >> provide a Carbon interface. This is on standard python OSX install. > > I think you mean CoreGraphics? That's more like Quartz, lower level > than > Carbon. Or what else do you mean...? > Try (within python): from Carbon import Win, Windows win = Win.CreateNewWindow(6, 0, (10,50,150,180)) win.MacShowWindow() (you'll need to Ctrl-D to exit - i can't figure out how to get the window to receive mouse-clicks, yet) >> I need to source the Learning Carbon and/or Learning Cocoa books from >> O'Reilly, since I can't stay connected to the internet to look at >> Apple's docs all day and night. > > When you install Apple's free Developer Tools you get all the docs > installed > too, and can read them on your Mac. I downloaded the 600 MB of the > latest > XCode CD (a bit more updated than what you get with Panther itself, > 1.1 I > believe). But whether you get that or the plain Developer Tools CD > that > comes with Panther, install it and start reading > /Developer/Documentation/* . > Budget a couple months...:). > Yeah, I found the docs. Stupid me to miss them. I'm (see my reply to Magnus here) working by comparing Carbon to BeOS, in terms of the API. >> Someone has created a Python thingo for Xcode, Apple's Development >> Environment. This might allow for direct creation of MacOS X apps in >> python! (Sorry, i got excited about that bit!) > > URL? I haven't heard about this one... > Sorry. Here you go: http://pythonmac.org/wiki/XcodeIntegration http://www.ulaluma.com/pyx/archives/000956.html I don't actually know how to use Xcode, or most IDEs really. I cut my C teeth under a pure CLI unix interface 10 years ago, and since I don't code for a living (I'm a high school teacher, and mainly teach CAD), haven't really bothered to improve my skills, other than to learn python. >> Apple have included stuff for Quartz access, which allows for graphics >> handling, but, IIUC (if I understand correctly) not for UI stuff. > > The CoreGraphics, again? Right, i don't think you get UI events there. Yeah, I found a link to a guy who used Python/Quartz for image manipulation - there wasn't much info on the site, but look in: /Developer/Examples/Quartz/Python/ (After actually looking in there, yes, CoreGraphics stuff I don't like they way Apple use Deutschesprechen (combining words with stuff, like kCGLineCapRound), it doesn't look pythonic to me... Matt. -- Matt Schinckel <[email protected]> ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click