/[gzz]/gzz/gzz/modules/pp/demotest.py
ViewVC logotype

Diff of /gzz/gzz/modules/pp/demotest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by mudyc, Mon Dec 2 20:13:05 2002 UTC revision 1.28 by mudyc, Wed Dec 4 17:02:09 2002 UTC
# Line 145  class PPView2Scene: Line 145  class PPView2Scene:
145              if len(key) == 1:              if len(key) == 1:
146                  ppactions.insertText(c.getId(), offs, key)                  ppactions.insertText(c.getId(), offs, key)
147                  self.avc.setCursorOffset(offs+1)                  self.avc.setCursorOffset(offs+1)
148                if key == "Backspace":
149                    if offs != 0:
150                        ppactions.deleteText(c.getId(), offs-1, offs)
151                        self.avc.setCursorOffset(offs-1)
152                if key == "Delete":
153                    print 'Untested! Doesn\'t check the length'
154                    ppactions.deleteText(c.getId(), offs, offs+1)
155    
156    
157      def scene(self, vs):      def scene(self, vs):
158          vs.map.put(background((0.4,0.5,0.8)))          vs.map.put(background((0.4,0.5,0.8)))

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26