[PyObjC-svn] r2119 - trunk/pyobjc/pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun Mar 22 14:33:24 2009
New Revision: 2119
Log:
Remove NibClassBuilder usage
Modified:
trunk/pyobjc/pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver/SillyBalls.py
Modified: trunk/pyobjc/pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver/SillyBalls.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver/SillyBalls.py (original)
+++ trunk/pyobjc/pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver/SillyBalls.py Sun Mar 22 14:33:24 2009
@@ -9,11 +9,8 @@
from AppKit import NSBezierPath, NSColor
from ScreenSaver import *
from random import random, randrange
-from PyObjCTools import NibClassBuilder
-NibClassBuilder.extractClasses("SillyBalls")
-
-class SillyBalls (NibClassBuilder.AutoBaseClass):
+class SillyBalls (ScreenSaverView):
def animateOneFrame(self):
# choose a random point.
@@ -32,4 +29,4 @@
# draw a new ball.
path.fill()
-#objc.removeAutoreleasePool()
+objc.removeAutoreleasePool()
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com