From: pin Date: Tue, 16 Feb 2010 10:27:28 +0000 (+0000) Subject: Ajout dossier app pour refactoring. X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/commitdiff_plain/15177f5827a1af081edd4761411c3c73be891fee?hp=ad30e729946b53122b9c1f66225f143d16d584fe Ajout dossier app pour refactoring. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@32 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/app/__init__.py b/src/app/__init__.py new file mode 100755 index 0000000..aa06489 --- /dev/null +++ b/src/app/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +""" +Initialisation de l'application winwii + +$Id$ +$URL$ +""" diff --git a/src/app/minwii.py b/src/app/minwii.py new file mode 100755 index 0000000..15e24dc --- /dev/null +++ b/src/app/minwii.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +""" +l'application winwii + +$Id$ +$URL$ +""" 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