modifications pour code auto-documenté.
[minwii.git] / src / app / start.py
index d1dc009..3f5f247 100755 (executable)
@@ -9,7 +9,7 @@ $URL$
 
 
 
-def main(wimoteSupport) :
+def main(wiimoteSupport) :
     import pygame
     from minwii import MinWii
     
@@ -17,7 +17,8 @@ def main(wimoteSupport) :
     #modeResolution = (1024,768)
     #modeResolution = (600,480)
     #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN)
-    MinWii(wimoteSupport=wimoteSupport)
+    minwii = MinWii(wiimoteSupport=wiimoteSupport)
+    minwii.run()
     # from gui.PGUConfiguration import PGUConfiguration
     # pygame.init()
     # modeResolution = (1024,768)
@@ -33,17 +34,17 @@ if __name__ == "__main__" :
     usage = "%prog instance_home products_conf_file [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