X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/1ddc7962970b99d8e6b3f760f99f1fdd76687987..f6e0db47250bd3666e1f46f22ed8153d77b46f2e:/src/app/start.py diff --git a/src/app/start.py b/src/app/start.py index d1dc009..dd0b0d5 100755 --- a/src/app/start.py +++ b/src/app/start.py @@ -9,20 +9,12 @@ $URL$ -def main(wimoteSupport) : +def main(wiimoteSupport) : import pygame from minwii import MinWii - pygame.init() - #modeResolution = (1024,768) - #modeResolution = (600,480) - #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN) - MinWii(wimoteSupport=wimoteSupport) - # from gui.PGUConfiguration import PGUConfiguration - # pygame.init() - # modeResolution = (1024,768) - # window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN) - # pgu = PGUConfiguration(window) + minwii = MinWii(wiimoteSupport=wiimoteSupport) + minwii.run() pygame.quit() if __name__ == "__main__" : @@ -30,20 +22,20 @@ if __name__ == "__main__" : import sys from optparse import OptionParser - usage = "%prog instance_home products_conf_file [options]" + usage = "%prog [options]" op = OptionParser(usage) - op.add_option("--no-wii", dest="wimoteSupport" + op.add_option("--no-wii", dest="wiimoteSupport" , action="store_false" , default=True , help = u"désactivation du support des wiimotes" u" [%default]") options, args = op.parse_args() - wimoteSupport = options.wimoteSupport + wiimoteSupport = options.wiimoteSupport minwiipath = realpath(__file__).split(sep) minwiipath = minwiipath[:-2] minwiipath = sep.join(minwiipath) sys.path.insert(1, minwiipath) - main(wimoteSupport) \ No newline at end of file + main(wiimoteSupport) \ No newline at end of file