X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/46f3ffd7fdde386f41020171b5733e55a8e64a85..3c10e656308bd0f29d8ac4d15f7f95f29aec1697:/src/minwii/start.py diff --git a/src/minwii/start.py b/src/minwii/start.py index dd0b0d5..a9d9582 100755 --- a/src/minwii/start.py +++ b/src/minwii/start.py @@ -9,13 +9,13 @@ $URL$ -def main(wiimoteSupport) : +def main(wiimoteSupport, fullscreen) : import pygame - from minwii import MinWii + from app import MinWii 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 @@ -31,11 +31,15 @@ if __name__ == "__main__" : , 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)