[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/modules/pp demotest.py
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gzz/modules/pp demotest.py |
Date: |
Fri, 10 Jan 2003 04:24:09 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/01/10 04:24:09
Modified files:
gzz/modules/pp : demotest.py
Log message:
clean
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp/demotest.py.diff?tr1=1.55&tr2=1.56&r1=text&r2=text
Patches:
Index: gzz/gzz/modules/pp/demotest.py
diff -u gzz/gzz/modules/pp/demotest.py:1.55 gzz/gzz/modules/pp/demotest.py:1.56
--- gzz/gzz/modules/pp/demotest.py:1.55 Fri Jan 10 04:11:39 2003
+++ gzz/gzz/modules/pp/demotest.py Fri Jan 10 04:24:09 2003
@@ -182,27 +182,33 @@
if key == "Ctrl-L":
self.ppv.showLinkbuoys = not self.ppv.showLinkbuoys
- if key == "Returnadsf":
- return
+ if key == "Left" or key == "Right" \
+ or key == "Up" or key == "Down" \
+ or key == "Home" or key == "End":
+
self.ppv.viewMode = self.ppv.TEXT_EDITING
+ self.ppv.showLinkbuoys = 0
+
c = self.avc.getAccursed()
- print "Acc: ",c
if self.avc.getCursorOffset(c) < 0 or c.s(self.d.contains, -1) ==
None:
return
- new_c = self.space.getCell(
- self.ppactions.newNote(c.h(self.d.contains).getId(),
- int(c.s(self.d.pan).t()),
int(c.s(self.d.pan).s(self.d.pan).t())+22, ""))
-
- print "NN: ",new_c
- self.avc.setAccursed(new_c)
- self.avc.setCursorOffset(0)
-
- if len(key) == 1 or key == "Backspace" or key == "Delete" \
- or key == "Left" or key == "Right" \
- or key == "Up" or key == "Down" \
- or key == "Home" or key == "End" \
- or key == "Return":
+ offs = self.avc.getCursorOffset(c)
+ print "OFss:", offs
+ AbstractUpdateManager.setNoAnimation()
+ if key == "Left":
+ if offs != 0:
+ self.avc.setCursorOffset(offs-1)
+ if key == "Right":
+ if offs < len(c.t()):
+ self.avc.setCursorOffset(offs+1)
+ if key == "Up":
+ self.avc.setCursorOffset(0)
+ if key == "Down":
+ self.avc.setCursorOffset(len(c.t()))
+
+ if len(key) == 1 or key == "Backspace" or \
+ key == "Delete" or key == "Return":
self.ppv.viewMode = self.ppv.TEXT_EDITING
self.ppv.showLinkbuoys = 1
@@ -236,16 +242,6 @@
if key == "Delete":
print 'Untested! Doesn\'t check the length'
self.ppactions.deleteText(c.getId(), offs, offs+1)
- if key == "Left":
- if offs != 0:
- self.avc.setCursorOffset(offs-1)
- if key == "Right":
- if offs < len(c.t()):
- self.avc.setCursorOffset(offs+1)
- if key == "Up":
- self.avc.setCursorOffset(0)
- if key == "Down":
- self.avc.setCursorOffset(len(c.t()))
def scene(self, vs):
vs.map.put(background((0.4,0.5,0.8)))
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/03
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/03
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/03
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/05
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/07
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/07
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/09
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/10
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/10
- [Gzz-commits] gzz/gzz/modules/pp demotest.py,
Matti Katila <=
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Asko Soukka, 2003/01/10