[pypy-svn] r7277 - pypy/trunk/src/pypy/translator/tool/pygame
bob at codespeak.net
bob at codespeak.net
Tue Nov 16 12:07:54 CET 2004
Author: bob
Date: Tue Nov 16 12:07:53 2004
New Revision: 7277
Modified:
pypy/trunk/src/pypy/translator/tool/pygame/graphdisplay.py
Log:
add keyboard repeat rate (500ms delay, 30ms repeat interval)
Modified: pypy/trunk/src/pypy/translator/tool/pygame/graphdisplay.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/pygame/graphdisplay.py (original)
+++ pypy/trunk/src/pypy/translator/tool/pygame/graphdisplay.py Tue Nov 16 12:07:53 2004
@@ -39,6 +39,7 @@
class GraphDisplay(Display):
STATUSBARFONT = os.path.join(autopath.this_dir, 'VeraMoBd.ttf')
ANIM_STEP = 0.07
+ KEY_REPEAT = (500, 30)
KEYS = {
'meta -' : ('zoom', 0.5),
@@ -76,6 +77,7 @@
self.setlayout(layout)
def initialize_keys(self):
+ pygame.key.set_repeat(*self.KEY_REPEAT)
for strnames, methodname in self.KEYS.iteritems():
names = strnames.split()
mod = 0
More information about the Pypy-commit
mailing list