Source

pygame / examples / vgrade.py

Diff from to

File examples/vgrade.py

 The code also demonstrates use of the timer events."""
 
 
-import pygame
+import os, pygame
 from pygame.locals import *
 
 try:
 def main():
     pygame.init()
     size = 600, 400
+    os.environ['SDL_VIDEO_CENTERED'] = '1'
     screen = pygame.display.set_mode(size, NOFRAME, 0)
 
     pygame.event.set_blocked(MOUSEMOTION) #keep our queue cleaner
         elif event.type == USEREVENT:
             DisplayGradient(screen)
 
-    
+
 
 if __name__ == '__main__': main()