This is a patch file for "KavCalc" 1.0e. This file modifies the pro- gram so that its main window is centered initially. Note: The standard version of "KavCalc.py" uses DOS newlines. The new- lines should be converted to Unix format before this file is applied. --- KavCalc.old/KavCalc.py +++ KavCalc/KavCalc.py @@ -2,6 +2,7 @@ import buttons, calc, functions, widgetGroups import pygame +import os from pygame.locals import * # Blah blah blah @@ -9,6 +10,8 @@ print 'Written by Mogmios with Python and Pygame.' # Init +os.environ['SDL_SET_VIDEO_WINDOW_POS'] = 'center' +os.environ['SDL_VIDEO_CENTERED'] = '1' pygame.init () screen = pygame.display.set_mode ( ( 200, 170 ) ) pygame.display.set_caption ( 'KavCalc' )