[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:11:39 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/01/10 04:11:39
Modified files:
gzz/modules/pp : demotest.py
Log message:
User friendly..
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp/demotest.py.diff?tr1=1.54&tr2=1.55&r1=text&r2=text
Patches:
Index: gzz/gzz/modules/pp/demotest.py
diff -u gzz/gzz/modules/pp/demotest.py:1.54 gzz/gzz/modules/pp/demotest.py:1.55
--- gzz/gzz/modules/pp/demotest.py:1.54 Fri Jan 10 01:40:16 2003
+++ gzz/gzz/modules/pp/demotest.py Fri Jan 10 04:11:39 2003
@@ -36,7 +36,6 @@
def clean_data(args=''):
os.system('rm '+PPDIR+'b_*')
os.system('rm '+PPDIR+'d*')
- #os.system('rm '+PPDIR+'ps_F*')
if args=='full':
os.system('rm '+PPDIR+'ps_*')
os.system('rm '+PPDIR+'pp.gz')
@@ -44,7 +43,6 @@
os.system('rm '+PPDIR+'pp.gz')
if args=='exept_pkg':
os.system('rm '+PPDIR+'ps_*')
- #os.system('ls -la '+PPDIR)
def return_data():
clean_data('exept_pkg')
@@ -117,7 +115,7 @@
self.ppv.viewMode = self.ppv.JUST_BROWSING
def key(self, key):
- #print 'key: ',key
+ print 'key: ',key
self.setDefaultViewMode()
if key == "Ctrl-T":
@@ -127,7 +125,10 @@
self.ppv.test_Y = 1
if key == "Ctrl-U":
self.ppv.test_U = 1
-
+
+ if key == "Ctrl-E":
+ print self.vs.matcher.interpList(self.vs.matcher, 0)
+
if key == "Alt-R":
os.system('make compile')
loadScenes()
@@ -143,6 +144,8 @@
if key == "Ctrl-X":
print 'Save...'
+ # Before saveing all empty cells should be removed!
+
if firstTime:
clean_data('exept_ptr')
#else:
@@ -179,7 +182,8 @@
if key == "Ctrl-L":
self.ppv.showLinkbuoys = not self.ppv.showLinkbuoys
- if key == "Return":
+ if key == "Returnadsf":
+ return
self.ppv.viewMode = self.ppv.TEXT_EDITING
c = self.avc.getAccursed()
print "Acc: ",c
@@ -195,11 +199,14 @@
self.avc.setCursorOffset(0)
if len(key) == 1 or key == "Backspace" or key == "Delete" \
- or key == "Left" or key == "Right":
+ or key == "Left" or key == "Right" \
+ or key == "Up" or key == "Down" \
+ or key == "Home" or key == "End" \
+ or key == "Return":
self.ppv.viewMode = self.ppv.TEXT_EDITING
self.ppv.showLinkbuoys = 1
- if key == "Left" or key == "Right":
+ if key == "Left" or key == "Right" or key == "Up" or key == "Down":
self.ppv.showLinkbuoys = 0
if not 32 <= ord(key[0]) <= 254:
@@ -219,6 +226,9 @@
if len(key) == 1:
self.ppactions.insertText(c.getId(), offs, key)
self.avc.setCursorOffset(offs+1)
+ if key == "Return":
+ self.ppactions.insertText(c.getId(), offs, '\n')
+ self.avc.setCursorOffset(offs+1)
if key == "Backspace":
if offs != 0:
self.ppactions.deleteText(c.getId(), offs-1, offs)
@@ -232,6 +242,10 @@
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 <=
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Matti Katila, 2003/01/10
- [Gzz-commits] gzz/gzz/modules/pp demotest.py, Asko Soukka, 2003/01/10