d1dc00916775c84260d84a722aebbee0de70223c
2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
12 def main(wimoteSupport
) :
14 from minwii
import MinWii
17 #modeResolution = (1024,768)
18 #modeResolution = (600,480)
19 #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN)
20 MinWii(wimoteSupport
=wimoteSupport
)
21 # from gui.PGUConfiguration import PGUConfiguration
23 # modeResolution = (1024,768)
24 # window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN)
25 # pgu = PGUConfiguration(window)
28 if __name__
== "__main__" :
29 from os
.path
import realpath
, sep
31 from optparse
import OptionParser
33 usage
= "%prog instance_home products_conf_file [options]"
34 op
= OptionParser(usage
)
36 op
.add_option("--no-wii", dest
="wimoteSupport"
37 , action
="store_false"
39 , help = u
"désactivation du support des wiimotes"
42 options
, args
= op
.parse_args()
43 wimoteSupport
= options
.wimoteSupport
45 minwiipath
= realpath(__file__
).split(sep
)
46 minwiipath
= minwiipath
[:-2]
47 minwiipath
= sep
.join(minwiipath
)
48 sys
.path
.insert(1, minwiipath
)