[shpy-commit] r2847 - shpy/trunk/dist/shpy

hpk@codespeak.net hpk@codespeak.net
Tue, 20 Jan 2004 14:08:38 +0100 (MET)


Author: hpk
Date: Tue Jan 20 14:08:38 2004
New Revision: 2847

Modified:
   shpy/trunk/dist/shpy/ui_pygame.py
Log:
minor enhancements, mwh has a greenz cursor now :-) 



Modified: shpy/trunk/dist/shpy/ui_pygame.py
==============================================================================
--- shpy/trunk/dist/shpy/ui_pygame.py	(original)
+++ shpy/trunk/dist/shpy/ui_pygame.py	Tue Jan 20 14:08:38 2004
@@ -6,8 +6,8 @@
 import shpy.net.register
 from shpy.net.structure import Structure, representstructure, getstructureid
 
-#RESOLUTION = (800, 600)
-RESOLUTION = (400, 300)
+RESOLUTION = (800, 600)
+#RESOLUTION = (400, 300)
 #FONT = 'lucon.ttf'
 FONT = None
 HEIGHT = 24
@@ -102,6 +102,7 @@
     try:
         return {'arigo': (0x60, 0, 0),
                 'hpk':   (0, 0, 0x80),
+                'mwh':   (0, 0x60, 0x00),
                 }[username]
     except KeyError:
         import random
@@ -117,6 +118,7 @@
         ns = {'terminal': self}
         self.servergateway = shpy.net.register.ServerGateway(hostport, ns)
         pygame.init()
+        pygame.key.set_repeat(500,30)
         self.screen = pygame.display.set_mode(RESOLUTION)
         self.font = pygame.font.Font(FONT, HEIGHT)
         self.root = self.servergateway.registerclient()