gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/demo calendarvobtest.py


From: Matti Katila
Subject: [Gzz-commits] gzz/gfx/demo calendarvobtest.py
Date: Wed, 30 Oct 2002 09:09:32 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Matti Katila <address@hidden>   02/10/30 09:09:32

Modified files:
        gfx/demo       : calendarvobtest.py 

Log message:
        help text.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/calendarvobtest.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gzz/gfx/demo/calendarvobtest.py
diff -u gzz/gfx/demo/calendarvobtest.py:1.2 gzz/gfx/demo/calendarvobtest.py:1.3
--- gzz/gfx/demo/calendarvobtest.py:1.2 Wed Oct 30 08:57:29 2002
+++ gzz/gfx/demo/calendarvobtest.py     Wed Oct 30 09:09:32 2002
@@ -43,6 +43,14 @@
         gzz.vob.CalendarVob.setBounds(0.9, 1.1, 0.8)
         vs.map.put(gzz.vob.CalendarVob(2002, 12), cs_cal)
 
+
+        # help text
+        colchars = 60
+        tscale = min(size.width*1.0, size.height*4.0/3) / colchars
+       cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, tscale, 0, 0, tscale)
+        vs.matcher.add(cs1, "1")
+        putText(vs, cs1, 'Use keys: +, -, Left, Right, Up and Down', 
color=(0,0,0), h=4, y = 2)
+
         
     def key(self, k):
         if k == "+":




reply via email to

[Prev in Thread] Current Thread [Next in Thread]