From: pin Date: Fri, 28 May 2010 14:19:05 +0000 (+0000) Subject: Mode wiimote de fullscreen mis en options. X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/commitdiff_plain/c760cb0bd85074fa71ce938b0b5fc657edce827b?ds=inline;hp=a10479e7e060f1294ecc685cf1106da1c6bb84e3 Mode wiimote de fullscreen mis en options. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@210 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/minwii/minwii_fullscreen.py b/src/minwii/minwii_fullscreen.py index 54314ce..966700c 100755 --- a/src/minwii/minwii_fullscreen.py +++ b/src/minwii/minwii_fullscreen.py @@ -6,7 +6,7 @@ $Id$ $URL$ """ - +from optparse import OptionParser import pygame from minwii.app import MinWii @@ -18,4 +18,19 @@ def main(wiimoteSupport, fullscreen) : pygame.quit() if __name__ == "__main__" : - main(True, True) + usage = "%prog [options]" + op = OptionParser(usage) + + op.add_option("--no-wii", dest="wiimoteSupport" + , action="store_false" + , default=True + , help = u"désactivation du support des wiimotes" + u" [%default]") + + op.add_option("--no-fullscreen", dest="fullscreen" + , action="store_false" + , default=True + , help = u"désactivation du mode plein écran" + u" [%default]") + options, args = op.parse_args() + main(options.wiimoteSupport, options.fullscreen)