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, 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.9, 0.9, 1.5) |
gzz.vob.CalendarVob.setBounds(0.6, 0.5, 1.0) |
34 |
|
|
35 |
|
# scales: date, weeknum, weekday, month |
36 |
|
gzz.vob.CalendarVob.setScales(1.1, 0.55, 0.24, 1.3) |
37 |
|
|
38 |
|
# shift(something(x,y)): date, weeknum, weekday, month |
39 |
|
gzz.vob.CalendarVob.setShifting(0.075, 0.55, 0.20, 1.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,0,0,1) |
46 |
vs.matcher.add(cs_cal, "cs_cal"+str(i)) |
vs.matcher.add(cs_cal, "cs_cal"+str(i)) |
47 |
cs_text = vs.coords.affineCoordsys(cs_home, 0, 0, i*9, 1.0, 0, 0, 1.0) |
|
48 |
|
cs_text = vs.coords.affineCoordsys(cs_home, 0, 0, 0, 1.0, 0, 0, 1.0) |
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.CalendarVob(2002, i), cs_cal, cs_text) |
52 |
|
|
53 |
|
|
54 |
# one test vob |
if 0: |
55 |
#cs_cal = vs.coords.affineCoordsys(0, 0, w/2 - ((w/3 + self.tx) * (self.scale -1) ) , |
cs_cal = vs.coords.affineCoordsys(0, 0, w/2 - ((w/3 + self.tx) * (self.scale -1) ) , |
56 |
# h/2 - ((h/3.5 + self.ty) *(self.scale-1)), |
h/2 - ((h/3.5 + self.ty) *(self.scale-1)), |
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.CalendarVob(2002, 12), cs_cal) |
61 |
|
|
62 |
|
|
63 |
|
|