2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
11 from optparse
import OptionParser
13 from app
import MinWii
15 def main(wiimoteSupport
, fullscreen
) :
17 minwii
= MinWii(wiimoteSupport
=wiimoteSupport
, fullscreen
=fullscreen
)
21 if __name__
== "__main__" :
22 usage
= "%prog [options]"
23 op
= OptionParser(usage
)
25 op
.add_option("--no-wii", dest
="wiimoteSupport"
26 , action
="store_false"
28 , help = u
"désactivation du support des wiimotes"
31 op
.add_option("--fullscreen", dest
="fullscreen"
34 , help = u
"activation du mode plein écran"
36 options
, args
= op
.parse_args()
38 main(options
.wiimoteSupport
, options
.fullscreen
)