[shpy-commit] r5012 - shpy/trunk/dist/shpy/ui_pygame
hpk at codespeak.net
hpk at codespeak.net
Mon Jun 7 12:57:23 MEST 2004
Author: hpk
Date: Mon Jun 7 12:57:22 2004
New Revision: 5012
Modified:
shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
Log:
quick hack to enable the TAB-keys (inserting just four
spaces right now)
Modified: shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
==============================================================================
--- shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py (original)
+++ shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py Mon Jun 7 12:57:22 2004
@@ -298,6 +298,12 @@
def CTRL_K_DOWN(self, event):
self.firstline.movedown()
+ def K_TAB(self, event):
+ x, line = self.cursor.xline()
+ line.content = line.content[:x] + ' ' + line.content[x:]
+ for i in range(4):
+ self.cursor.moveright()
+
def K_DELETE(self, event):
x, line = self.cursor.xline()
if x < len(line.content):
@@ -394,7 +400,7 @@
if len(sys.argv) > 2:
execserver = sys.argv[2]
else:
- execserver = 'popen=python -u -c "exec input()"'
+ execserver = 'popen=xpython -u -c "exec input()"'
t = Terminal(sharedserver, execserver)
try:
t.run()
More information about the shpy-commit
mailing list