Ajout dossier app pour refactoring.
authorpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Feb 2010 10:27:28 +0000 (10:27 +0000)
committerpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Feb 2010 10:27:28 +0000 (10:27 +0000)
git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@32 fe552daf-6dbe-4428-90eb-1537e0879342

src/app/__init__.py [new file with mode: 0755]
src/app/minwii.py [new file with mode: 0755]
src/app/start.py [new file with mode: 0755]

diff --git a/src/app/__init__.py b/src/app/__init__.py
new file mode 100755 (executable)
index 0000000..aa06489
--- /dev/null
@@ -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 (executable)
index 0000000..15e24dc
--- /dev/null
@@ -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 (executable)
index 0000000..ee96981
--- /dev/null
@@ -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