X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/5034abc0164f6c09cb53291d2fe3e71c33cc4cf9..e20495c66925a06496b90ccbe566cebecc74efa6:/src/minwii/app.py diff --git a/src/minwii/app.py b/src/minwii/app.py index ab10bdf..444aafc 100755 --- a/src/minwii/app.py +++ b/src/minwii/app.py @@ -99,10 +99,11 @@ class MinWii(object): if self.fullscreen : displayFlags = displayFlags | pygame.FULLSCREEN pygame.display.set_mode(self.screenResolution, displayFlags) - pygame.display.set_caption('MINWii') + pygame.display.set_caption('MINDs') WT = self.WT - songFile, playMode, displayNotes, wiimoteIndex = '', 'NORMAL', True, 0 + # valeurs par défaut des options + songFile, playMode, displayNotes, wiimoteIndex = '', 'NORMAL', False, 0 while True : WT.resume() @@ -110,7 +111,9 @@ class MinWii(object): self.screen = SCREEN_HOME exit, songFile, playMode, displayNotes, wiimoteIndex = \ self.selectSongAndOptions(songFile, playMode, displayNotes, wiimoteIndex) - if exit : break + if exit : + WT.quit() + break self.screen = SCREEN_INSTRUMENTS @@ -218,3 +221,5 @@ class _WTFacade : pass def get_count(self) : return None + def quit(self) : + pass