X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/ad30e729946b53122b9c1f66225f143d16d584fe..15177f5827a1af081edd4761411c3c73be891fee:/src/app/start.py diff --git a/src/app/start.py b/src/app/start.py new file mode 100755 index 0000000..ee96981 --- /dev/null +++ b/src/app/start.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +""" +lancement de l'application winwii + +$Id$ +$URL$ +""" + + +def main() : + import pygame + from gui import PGUConfiguration + pygame.init() + modeResolution = (1024,768) + window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN) + pgu = PGUConfiguration(window) + pygame.quit() + +if __name__ == "__main__" : + from os.path import realpath, sep + import sys + + minwiipath = realpath(__file__).split(sep) + minwiipath = minwiipath[:-2] + minwiipath = sep.join(minwiipath) + + sys.path.append(minwiipath) + print sys.path + main() \ No newline at end of file