Added icons / proper window captions.
This commit is contained in:
parent
254ed927d6
commit
f6fc1c23b4
|
@ -837,6 +837,9 @@ def main():
|
||||||
|
|
||||||
# startLogging('tennis.log')
|
# startLogging('tennis.log')
|
||||||
|
|
||||||
|
pygame.display.set_caption('Tennis For Two')
|
||||||
|
pygame.display.set_icon(pygame.image.load('tennis.bmp'))
|
||||||
|
|
||||||
Game.screen = pygame.display.set_mode(SCREENRECT.size, DOUBLEBUF, 16)
|
Game.screen = pygame.display.set_mode(SCREENRECT.size, DOUBLEBUF, 16)
|
||||||
|
|
||||||
Game.evMgr = EventManager()
|
Game.evMgr = EventManager()
|
||||||
|
@ -853,6 +856,7 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#@-node:jpenner.20050319125841:Setup
|
#@-node:jpenner.20050319125841:Setup
|
||||||
#@-others
|
#@-others
|
||||||
#@nonl
|
#@nonl
|
||||||
|
|
|
@ -14,7 +14,7 @@ import py2exe
|
||||||
|
|
||||||
|
|
||||||
script = "TennisForTwo.py" #name of starting .PY
|
script = "TennisForTwo.py" #name of starting .PY
|
||||||
icon_file = "" #ICO file for the .EXE (not working well)
|
icon_file = "tennis.ico" #ICO file for the .EXE (not working well)
|
||||||
optimize = 2 #0, 1, or 2; like -O and -OO
|
optimize = 2 #0, 1, or 2; like -O and -OO
|
||||||
dos_console = 0 #set to 0 for no dos shell when run
|
dos_console = 0 #set to 0 for no dos shell when run
|
||||||
extra_data = ['data'] #extra files/dirs copied to game
|
extra_data = ['data'] #extra files/dirs copied to game
|
||||||
|
@ -31,8 +31,8 @@ project_name = os.path.splitext(os.path.split(script)[1])[0]
|
||||||
|
|
||||||
#this will create the executable and all dependencies
|
#this will create the executable and all dependencies
|
||||||
setup(#name=project_name,
|
setup(#name=project_name,
|
||||||
windows=[script],
|
windows=[{"script": script, "icon_resources": [(1, icon_file)]}],
|
||||||
data_files=[("data", glob.glob("data\\*.wav")),(".", ["C:\\python24\\lib\\site-packages\\pygame\\freesansbold.ttf"])]
|
data_files=[("data", glob.glob("data\\*.wav")),(".", ["C:\\python24\\lib\\site-packages\\pygame\\freesansbold.ttf", "tennis.bmp"])]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
tennis.bmp
Normal file
BIN
tennis.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
tennis.ico
Normal file
BIN
tennis.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in a new issue