self.project_version = "0.0"
#License of the program
self.project_version = "0.0"
#License of the program
- self.license = "MyApps License"
- self.author_name = "Me"
- self.author_email = "example@example.com"
- self.copyright = "Copyright (c) 2009 Me."
+ self.author_name = "Samuel Benveniste"
+ self.author_email = "samuel.benveniste@gmail.com"
+ self.copyright = "Copyright 2010 MINES-ParisTech"
- self.project_description = "MyApps Description"
+ self.project_description = "Musicothérapie Interractive avec la Wii"
#Icon file (None will use pygame default icon)
self.icon_file = None
#Icon file (None will use pygame default icon)
self.icon_file = None
license = self.license,
# targets to build
license = self.license,
# targets to build
- #windows = [{
- # 'script': self.script,
- # 'icon_resources': [(0, self.icon_file)],
- # 'copyright': self.copyright
- #}],
- console = [self.script],
+ windows = [{
+ 'script': self.script,
+ 'icon_resources': [(0, self.icon_file)],
+ 'copyright': self.copyright
+ }],
+ #console = [self.script],
options = {'py2exe': {#'optimize': 2,
#'bundle_files': 1,
#'compressed': True,
options = {'py2exe': {#'optimize': 2,
#'bundle_files': 1,
#'compressed': True,
- def __init__(self, wiimoteSupport=True) :
+ def __init__(self, wiimoteSupport=True, fullscreen=False) :
envLogger.info('winwii log format version : %s', LOG_FORMAT_VERSION)
self.wiimoteSupport = wiimoteSupport
envLogger.info('winwii log format version : %s', LOG_FORMAT_VERSION)
self.wiimoteSupport = wiimoteSupport
+ self.fullscreen = fullscreen
LaunchScreen()
self.app = Desktop()
self.synth = Synth()
LaunchScreen()
self.app = Desktop()
self.synth = Synth()
def run(self) :
"séquençage de l'affichage des écrans"
def run(self) :
"séquençage de l'affichage des écrans"
-
- pygame.display.set_mode(self.screenResolution)
+ displayFlags = 0
+ if self.fullscreen :
+ displayFlags = displayFlags | pygame.FULLSCREEN
+ pygame.display.set_mode(self.screenResolution, displayFlags)
pygame.display.set_caption('MinWii')
WT = self.WT
pygame.display.set_caption('MinWii')
WT = self.WT
from minwii.app import MinWii
from minwii.app import MinWii
-def main(wiimoteSupport) :
+def main(wiimoteSupport, fullscreen) :
- minwii = MinWii(wiimoteSupport=wiimoteSupport)
+ minwii = MinWii(wiimoteSupport=wiimoteSupport, fullscreen=fullscreen)
minwii.run()
pygame.quit()
if __name__ == "__main__" :
minwii.run()
pygame.quit()
if __name__ == "__main__" :