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 |
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: |
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 |
|
|