Jon Schull's Weblog





Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Monday, December 1, 2003
 


I've gotta figure out how to make this work....

Panther + PyObjC = Yum

So lately I've been doing more work with Python. I've written some pretty neat code that utilizes PIL (Python Imaging Library) and wanted to make a GUI for it. Well - lo and behold, good ol' Panther comes with Python 2.3 pre-installed and PyObjC installs beautifully on top of it. So what does this mess of acronyms and techno-babble all mean?

Well, I can hop in to Interface Builder (OS X's tool for developing interfaces) and draw up my applications interface and the outlets (a.k.a. properties that point to a widget) and actions (a.k.a. callbacks from those widgets). Then I just run the resulting NIB file through a script from the PyObjC project and wa-la! - stub code for writing the actual application entirely in Python. After I'm done writing that code I can run another script from the PyObjC guys and I get a bundle all ready for distribution to all of Mac-Kind. So there we have it - from python to no-kidding OS X application. Gotta love it.

So, keep an eye out for a little app I'll be releasing soon! It will be for OS X first, and then once I get a handle on wxPython, for windows and linux.

TrackBack URL for this entry:
http://www.waxpraxis.org/mt/mt-tb.cgi/24


comments? [] 10:53:14 PM    


Click here to visit the Radio UserLand website. © Copyright 2004 Jon Schull.
Last update: 1/21/04; 9:29:13 AM.
December 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Nov   Jan