retrait TODO.
[minwii.git] / src / app / start.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """
4 lancement de l'application winwii
5
6 $Id$
7 $URL$
8 """
9
10
11 def main() :
12 import pygame
13 from minwii import MinWii
14
15 pygame.init()
16 modeResolution = (1024,768)
17 #modeResolution = (600,480)
18 window = pygame.display.set_mode(modeResolution)#, pygame.FULLSCREEN)
19 MinWii()
20 # from gui.PGUConfiguration import PGUConfiguration
21 # pygame.init()
22 # modeResolution = (1024,768)
23 # window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN)
24 # pgu = PGUConfiguration(window)
25 pygame.quit()
26
27 if __name__ == "__main__" :
28 from os.path import realpath, sep
29 import sys
30
31 minwiipath = realpath(__file__).split(sep)
32 minwiipath = minwiipath[:-2]
33 minwiipath = sep.join(minwiipath)
34 sys.path.insert(1, minwiipath)
35 main()