30 |
gzz.vob.CalendarVob.setStatics(style_date, style_n, 2) |
gzz.vob.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.6, 0.5, 1.0) |
gzz.vob.CalendarVob.setBounds(0.4, 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.CalendarVob.setScales(1.1, 0.55, 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.075, 0.55, 0.20, 1.1) |
gzz.vob.CalendarVob.setShifting(0.15, 0.85, 0.0, 0.1) |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
# annual calendar |
# annual calendar |
44 |
for i in range(1, 13): |
for i in range(1, 13): |
45 |
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.5, 0, 0, 1.15) |
46 |
vs.matcher.add(cs_cal, "cs_cal"+str(i)) |
vs.matcher.add(cs_cal, "cs_cal"+str(i)) |
47 |
|
|
48 |
cs_text = vs.coords.affineCoordsys(cs_home, 0, 0, 0, 1.0, 0, 0, 1.0) |
cs_text = vs.coords.affineCoordsys(0, 0, 0, 0,w*self.scale, 0,0, h*self.scale) |
49 |
|
|
50 |
vs.matcher.add(cs_text, "cs_text"+str(i)) |
vs.matcher.add(cs_text, "cs_text"+str(i)) |
51 |
|
|
52 |
vs.map.put(gzz.vob.CalendarVob(2002, i), cs_cal, cs_text) |
vs.map.put(gzz.vob.CalendarVob(2002, i), cs_cal, cs_text) |