"""
+from optparse import OptionParser
+import pygame
+from app import MinWii
-def main(wiimoteSupport) :
- import pygame
- from app import MinWii
+def main(wiimoteSupport, fullscreen) :
pygame.init()
- minwii = MinWii(wiimoteSupport=wiimoteSupport)
+ minwii = MinWii(wiimoteSupport=wiimoteSupport, fullscreen=fullscreen)
minwii.run()
- pygame.quit()
+ pygame.quit()
if __name__ == "__main__" :
- from os.path import realpath, sep
- import sys
- from optparse import OptionParser
-
usage = "%prog [options]"
op = OptionParser(usage)
, help = u"désactivation du support des wiimotes"
u" [%default]")
+ op.add_option("--fullscreen", dest="fullscreen"
+ , action="store_true"
+ , default=False
+ , help = u"activation du mode plein écran"
+ u" [%default]")
options, args = op.parse_args()
- wiimoteSupport = options.wiimoteSupport
- minwiipath = realpath(__file__).split(sep)
- minwiipath = minwiipath[:-2]
- minwiipath = sep.join(minwiipath)
- sys.path.insert(1, minwiipath)
- main(wiimoteSupport)
\ No newline at end of file
+ main(options.wiimoteSupport, options.fullscreen)