[Pyobjc-dev] Pycotine now using PyObjC! ;-)
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-01-08 09:55:36
|
Hi, this is really exciting... I once wrote a little Cocoa GUI to Steve Purcell's PyUnit, following closely an existing Tkinter GUI. I've "ported" Pycotine y'day to use PyObjC and put the new development version 0.2 into my Starship cabin: http://python.net/crew/gherman/#pycotine The interesting bits are: it's still using NSTask to spawn an exter- nal "tracking" TestRunner and an NSTimer to read the data from some files and refresh the GUI during testing. Under Objective-C this was the only way, but using Python only this can clearly be improv- ed, maybe in the next version. Ideally, the info in the traceback view would be clickable and able to take you to the source files... maybe one day... ;-) To run it on your own test suites just add a function named either suite() or makeSuite() that returns a unittest.TestSuite object to your Python file and open/run it with Pycotine! The previous ver- sion 0.1 contains some samples, too, which you can reuse with 0.2. I like the fact that Cocoa/PB/IB development is much faster with Python than with Objective-C! It would be interesting to compare to AppleScript, which I know little about... Enjoy, Dinu -- Dinu C. Gherman ...................................................................... "Some are born great, some achieve greatness, and some hire public relations officers." (Daniel J. Boorstin) |