From 15177f5827a1af081edd4761411c3c73be891fee Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 16 Feb 2010 10:27:28 +0000 Subject: [PATCH 1/1] Ajout dossier app pour refactoring. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@32 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/__init__.py | 7 +++++++ src/app/minwii.py | 7 +++++++ src/app/start.py | 29 +++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100755 src/app/__init__.py create mode 100755 src/app/minwii.py create mode 100755 src/app/start.py 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 -- 2.20.1