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
10:53:14 PM
|