[pypy-svn] r5961 - pypy/trunk/src/pypy/translator/tool/pygame
arigo at codespeak.net
arigo at codespeak.net
Sun Aug 15 12:08:28 CEST 2004
Author: arigo
Date: Sun Aug 15 12:08:27 2004
New Revision: 5961
Modified:
pypy/trunk/src/pypy/translator/tool/pygame/graphviewer.py
Log:
Cannot safely close and re-open a Pygame window, depending on version and
platform.
Modified: pypy/trunk/src/pypy/translator/tool/pygame/graphviewer.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/pygame/graphviewer.py (original)
+++ pypy/trunk/src/pypy/translator/tool/pygame/graphviewer.py Sun Aug 15 12:08:27 2004
@@ -141,7 +141,9 @@
self.must_redraw = True
if event.type == QUIT:
break
- pygame.display.quit()
+ # cannot safely close and re-open the display, depending on
+ # Pygame version and platform.
+ pygame.display.set_mode((self.width,1))
if __name__ == '__main__':
More information about the Pypy-commit
mailing list