[Pyobjc-dev] Pure Python Cocoa GUI application?
Brought to you by:
ronaldoussoren
|
From: Orestis M. <or...@or...> - 2009-03-15 11:16:55
|
Hello, For the purposes of testing an application, running it in the same process as the tests (ie. as part of a unittest run) is essential. However, for Cocoa applications built with PyObjC built with the XCode templates I haven't found a way to do this. As far as I can understand main.m, all it does is using the Python C API to run main.py. However, when I try to run main.py standalone, things fail because there is no bundle. I've tried to do: app = NSApplication.sharedApplication() app.setDelegate_(delegate) app.run() but things crash soon after. Same if I do AppHelper.runEventLoop(). So my question is: Is there any way from pure python (no main.m, no nib) to get something showing on the screen? I know that without a nib I won't get a proper dock icon or a menu bar, but this is going to be a full screen app and thus these things are not needed. I can cope with bundles, but if there could be no bundles that'd be nice as well. Thanks, Orestis -- or...@or... http://orestis.gr/ |