# HG changeset patch # User Adrianna PiƄska # Date 1283034824 -7200 # Node ID 9c285017535dec59b06fa6cefc63c45600337c0c # Parent a6de33fecb97b571764f9e1d8bce2792eaaafcef Added icon and title to window diff -r a6de33fecb97 -r 9c285017535d gamelib/main.py --- a/gamelib/main.py Sun Aug 29 00:30:17 2010 +0200 +++ b/gamelib/main.py Sun Aug 29 00:33:44 2010 +0200 @@ -22,6 +22,7 @@ from constants import SCREEN, FRAME_RATE, FREQ, BITSIZE, CHANNELS, BUFFER, DEBUG from sound import no_sound, disable_sound import state +import data def parse_args(args): parser = OptionParser() @@ -63,6 +64,9 @@ state.DEBUG_SCENE = opts.scene state.DEBUG_RECTS = opts.rects display = pygame.display.set_mode(SCREEN, SWSURFACE) + pygame.display.set_icon(pygame.image.load( + data.filepath('icons/suspended_sentence24x24.png'))) + pygame.display.set_caption("Suspended Sentence") shell = MainShell(display) try: shell.run()