curseur troué au milieu.
[minwii.git] / src / app / widgets / launch.py
1 import pygame
2 import os.path
3
4 class LaunchScreen :
5
6 @staticmethod
7 def _get_launch_image() :
8 imagePath = os.path.abspath(__file__).split(os.path.sep)[:-1]
9 imagePath.extend(['data', 'accueil.png'])
10 return os.path.sep.join(imagePath)
11
12 def __init__(self) :
13 imagePath = LaunchScreen._get_launch_image()
14 self.image = pygame.image.load(imagePath)
15 size = self.image.get_size()
16 pygame.display.set_mode(size, pygame.NOFRAME)
17 screen = pygame.display.get_surface()
18 screen.blit(self.image, (0,0))
19 pygame.display.flip()