Re: [Pyobjc-dev] ScreenSaver Example
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-11-04 10:32:47
|
Ronald Oussoren: > It works for me (TM). There's a buildplugin.py script in the archive, > run 'buildplugin build' and then 'open build/SillyBalls.saver'. On > Panther you'll get a message that the saver should be installed first, > and System Preferences will install it for you. I don't know if this > works on Jaguar, you may have to install it manually (in > ~/Library/Screen Savers). Ok, I've built it as you say, moved it into ~/Library/Screen Savers and get this when trying to select it on 10.2.8 (with PyObjC 1.0) from System Preferences: Failed to initialize bundle NSBundle </Users/dinu/Library/ Screen Savers/SillyBalls.saver> (loaded) The console says the following: 2003-11-04 11:27:00.027 System Preferences[2254] can't get principalClass for /Users/dinu/Library/Screen Savers/SillyBalls.saver loading python screen saver Traceback (most recent call last): File "/Users/dinu/Library/Screen Savers/SillyBalls.saver/Contents/Resources/SillyBalls.py", line 6, in ? from AppKit import NSMakePoint, NSMakeRect, NSBezierPath, NSColor ImportError: No module named AppKit Is the above a general problem with bundles that has been solved for 10.3 or is the lower part just a bug? Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... "The best way to predict the future is to invent it." (Alan Kay) |