/[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.8 by mudyc, Fri Nov 1 13:38:22 2002 UTC revision 1.9 by mudyc, Sat Nov 2 11:05:44 2002 UTC
# Line 27  class ViewScene: Line 27  class ViewScene:
27                                                                                
28    
29          # these don't efect          # these don't efect
30          gzz.vob.CalendarVob.setStatics(style_date, style_n, 2)          gzz.vob.vobs.CalendarVob.setStatics(style_date, style_n, 2)
31    
32          # week number width, weekday height, month name height          # week number width, weekday height, month name height
33          gzz.vob.CalendarVob.setBounds(0.4, 0.5, 1.0)          gzz.vob.vobs.CalendarVob.setBounds(0.5, 0.5, 1.0)
34    
35          # scales: date, weeknum, weekday, month          # scales: date, weeknum, weekday, month
36          gzz.vob.CalendarVob.setScales(1.1, 0.55, 0.24, 1.3)          gzz.vob.vobs.CalendarVob.setScales(1.1, 0.4, 0.24, 1.3)
37    
38          # shift(something(x,y)): date, weeknum, weekday, month          # shift(something(x,y)): date, weeknum, weekday, month
39          gzz.vob.CalendarVob.setShifting(0.15, 0.85, 0.0, 0.1)          gzz.vob.vobs.CalendarVob.setShifting(0.05, 0.85, 0.2, 0.1)
   
40                    
41                
42          # annual calendar          # annual calendar
# Line 49  class ViewScene: Line 48  class ViewScene:
48    
49              vs.matcher.add(cs_text, "cs_text"+str(i))              vs.matcher.add(cs_text, "cs_text"+str(i))
50    
51              vs.map.put(gzz.vob.CalendarVob(2002, i), cs_cal, cs_text)              vs.map.put(gzz.vob.vobs.CalendarVob(2002, i), cs_cal, cs_text)
52    
53    
54          if 0:          if 0:
# Line 58  class ViewScene: Line 57  class ViewScene:
57                                                w/6 * self.scale, 0, 0, h/5 * self.scale)                                                w/6 * self.scale, 0, 0, h/5 * self.scale)
58              vs.matcher.add(cs_cal, "cs_cal")              vs.matcher.add(cs_cal, "cs_cal")
59              gzz.vob.CalendarVob.setBounds(0.9, 1.1, 0.8)              gzz.vob.CalendarVob.setBounds(0.9, 1.1, 0.8)
60              vs.map.put(gzz.vob.CalendarVob(2002, 12), cs_cal)              vs.map.put(gzz.vob.vobs.CalendarVob(2002, 12), cs_cal)
61    
62    
63    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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