Parent Directory | Revision Log | Patch
revision 1.1 by tjl, Wed Aug 7 13:24:42 2002 UTC | revision 1.2 by benja, Wed Sep 4 22:06:00 2002 UTC | |
---|---|---|
# | Line 6 class TimeoutScene: | Line 6 class TimeoutScene: |
6 | def timeout(self, obj): | def timeout(self, obj): |
7 | self.x = 300-self.x | self.x = 300-self.x |
8 | AbstractUpdateManager.chg() | AbstractUpdateManager.chg() |
9 | def scene(self): | def scene(self, vs): |
10 | d = w.getSize() | d = w.getSize() |
vs = gfxapi.createVobScene(d) | ||
11 | putnoc(vs, background((0.5,0.5,0.5))) | putnoc(vs, background((0.5,0.5,0.5))) |
12 | vs.put(rectangle((1,0.1,0.1)), "rec", 10, self.x, 200, 150, 150) | vs.put(rectangle((1,0.1,0.1)), "rec", 10, self.x, 200, 150, 150) |
13 | w.addTimeout(1000, None) | w.addTimeout(1000, None) |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |