diff options
Diffstat (limited to 'src/sliceitoff/display/display.py')
-rw-r--r-- | src/sliceitoff/display/display.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py new file mode 100644 index 0000000..151bb11 --- /dev/null +++ b/src/sliceitoff/display/display.py @@ -0,0 +1,17 @@ +import pygame + +class Display(): + def __init__(self): + pygame.display.init() + mode_info = pygame.display.Info() + self.screen = pygame.display.set_mode( + (mode_info.current_w, mode_info.current_h), + pygame.FULLSCREEN ) + + def update(self, groups = None): + """ Updates the screen: clear, blit gropus and flip """ + self.screen.fill() + pygame.display.flip() + + def __del__(self): + pygame.display.quit() |