[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo keymap-test.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/demo keymap-test.py |
Date: |
Tue, 07 Jan 2003 07:36:58 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 03/01/07 07:36:58
Modified files:
gfx/demo : keymap-test.py
Log message:
Make keymapping do something
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/keymap-test.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/keymap-test.py
diff -u gzz/gfx/demo/keymap-test.py:1.1 gzz/gfx/demo/keymap-test.py:1.2
--- gzz/gfx/demo/keymap-test.py:1.1 Tue Jan 7 07:25:07 2003
+++ gzz/gfx/demo/keymap-test.py Tue Jan 7 07:36:57 2003
@@ -11,7 +11,6 @@
# BackGround
self.bgcolor = (0.5, 0.4, 0.7)
putnoc(vs, background(self.bgcolor))
- cs2 = vs.coords.affineCoordsys(0, 0, 0, 0, 0.1, 0, 0, 0.1)
# Put a Text Vob
colchars = 60
@@ -21,13 +20,16 @@
vs.matcher.add(cs1, "1")
putText(vs, cs1, 'Text Vob', color=(0,0,0), h=4, y = 3)
- self.vs = vs
- self.cs = cs1
+ # Note how we map the OLD cs2 to the NEW cs1
+ if hasattr(self,"cs2"):
+ vs.matcher.keymapSingleCoordsys(cs1, self.cs2)
+
+ # and now store the NEW cs2
+ self.cs2 = vs.translateCS(0, "X", 150,150,0)
+
def key(self, k):
print 'simsalapim!'
- cs2 = self.vs.translateCS(0, "X", 150,150,0)
- self.vs.matcher.keymapSingleCoordsys(self.cs, cs2)
self.a = self.a + 5
currentScene = ViewScene()
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Matti Katila, 2003/01/07
- [Gzz-commits] gzz/gfx/demo keymap-test.py,
Tuomas J. Lukka <=
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Matti Katila, 2003/01/08
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Tuomas J. Lukka, 2003/01/08
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Matti Katila, 2003/01/09
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Matti Katila, 2003/01/13
- [Gzz-commits] gzz/gfx/demo keymap-test.py, Matti Katila, 2003/01/13