/[gzz]/gzz/gfx/demo/calendarvobtest.py
ViewVC logotype

Diff of /gzz/gfx/demo/calendarvobtest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mudyc, Wed Oct 30 15:36:46 2002 UTC revision 1.6 by mudyc, Thu Oct 31 12:27:03 2002 UTC
# Line 19  class ViewScene: Line 19  class ViewScene:
19          putnoc(vs, background(self.bgcolor))          putnoc(vs, background(self.bgcolor))
20    
21          cs_home = vs.coords.affineCoordsys(0,0,          cs_home = vs.coords.affineCoordsys(0,0,
22                                          w/2 + self.tx*self.scale,                                             w/2 + self.tx*self.scale,
23                                          h/2 + self.ty*self.scale,                                             h/2 + self.ty*self.scale,
24                                          w*self.scale, 0,0, h*self.scale);                                             w*self.scale, 0,0, h*self.scale);
25          vs.matcher.add(cs_home, "cs_koti")          vs.matcher.add(cs_home, "cs_koti")
26    
27                                          
28    
29          # these don't efect          # these don't efect
30          gzz.vob.CalendarVob.setStatics(style_date, style_n, 3)          gzz.vob.CalendarVob.setStatics(style_date, style_n, 3)
31    
# Line 34  class ViewScene: Line 36  class ViewScene:
36          for i in range(1, 13):          for i in range(1, 13):
37              cs_cal = vs.coords.affineCoordsys(cs_home , 0, 0 , i*9,  1,0,0,1)              cs_cal = vs.coords.affineCoordsys(cs_home , 0, 0 , i*9,  1,0,0,1)
38              vs.matcher.add(cs_cal, "cs_cal"+str(i))              vs.matcher.add(cs_cal, "cs_cal"+str(i))
39              vs.map.put(gzz.vob.CalendarVob(2002, i), cs_cal)              cs_text = vs.coords.affineCoordsys(cs_home, 0, 0, i*9, 1.0, 0, 0, 1.0)
40                vs.matcher.add(cs_text, "cs_text"+str(i))
41                vs.map.put(gzz.vob.CalendarVob(2002, i), cs_cal, cs_text)
42    
43    
44          # one test vob          # one test vob

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26