Mercurial > pyntnclick
changeset 447:9c285017535d
Added icon and title to window
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 00:33:44 +0200 |
parents | a6de33fecb97 |
children | e3bf125d7f05 |
files | gamelib/main.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()