From 967c3023786aaf8753d5a7597c4a418d95807c5b Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 23 Mar 2010 14:01:31 +0000 Subject: [PATCH 1/1] =?utf8?q?Affichage=20=C3=A9cran=20de=20lancement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@112 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/minwii.py | 9 ++++++++- src/app/start.py | 4 ++-- src/app/widgets/data/accueil.png | Bin 0 -> 13842 bytes src/app/widgets/launch.py | 19 +++++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/app/widgets/data/accueil.png create mode 100755 src/app/widgets/launch.py diff --git a/src/app/minwii.py b/src/app/minwii.py index dbf1b23..06e33f7 100755 --- a/src/app/minwii.py +++ b/src/app/minwii.py @@ -9,6 +9,7 @@ $URL$ import pygame from pgu.gui import Desktop from pgu.gui import QUIT +from widgets.launch import LaunchScreen from widgets.home import Home from widgets.playingscreen import SongPlayingScreen, PlayingScreen from widgets.instrumentselector import InstrumentSelector @@ -16,13 +17,19 @@ from synth import Synth from eventutils import EventDispatcher from musicxml import musicXml2Song from config import SONG_FILE_PATH +from time import sleep class MinWii(object): def __init__(self) : + LaunchScreen() app = Desktop() synth = Synth() + modeResolution = (1024,768) + pygame.display.set_mode(modeResolution) + pygame.display.set_caption('MinWii') + while True : # sélection de la chanson home = Home(songPath=SONG_FILE_PATH) @@ -42,7 +49,7 @@ class MinWii(object): instrumentDescription = selector.selectedInstrument # lancement du lecteur / clavier - song = musicXml2Song(home.songFile, printNotes=True) + song = musicXml2Song(home.songFile) bank, preset = instrumentDescription['bank'], instrumentDescription['preset'] synth.program_select(0, bank, preset) playingScreen = SongPlayingScreen(synth, song) diff --git a/src/app/start.py b/src/app/start.py index 9cfbd40..c71bc45 100755 --- a/src/app/start.py +++ b/src/app/start.py @@ -13,9 +13,9 @@ def main() : from minwii import MinWii pygame.init() - modeResolution = (1024,768) + #modeResolution = (1024,768) #modeResolution = (600,480) - window = pygame.display.set_mode(modeResolution)#, pygame.FULLSCREEN) + #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN) MinWii() # from gui.PGUConfiguration import PGUConfiguration # pygame.init() diff --git a/src/app/widgets/data/accueil.png b/src/app/widgets/data/accueil.png new file mode 100644 index 0000000000000000000000000000000000000000..cd3224b5172098f5ff49567df1dc27e46ae4b9d3 GIT binary patch literal 13842 zcmajGdmz*Q7eBrdN-e#UF0SdG>pRz6Mp03&xkqjZHYyu)i(#1YoqB(MpZDkY{p0)BbFb&?c|YfQUXRB)XRnM5w1GSVJOBUycvt6^ zF#xdN5&+nD?jRSt=Au#wg01h;_2)g;Nar~xcS)gk<;0`9u6)}#!e28gS@{v zsQ~~A)pu{*Gz}b^p9u02A~;Z&+cQpgPjUqU&h9(jaQE&7r*H50bze)3+FDDCzN$31 zI9F0-X05yvL$`<<8@rdGf%Gw502>!RCOo)o9mnS))nVcO%}4So5}c5ubML|podf%R z0ldi(j>s@i3J}UA7qM^T?9CPCef@+Fv$LVB;E#+SP*2|d-WOvZG zcI)83+x{8PUyM@A0RU_Wm4CHhH`;mh@)*05OGyNK+{v(}6>^o#Hg?pE|J>;`a$h5P zlvG!+bw^lED6V^9q!IDRx@$4bn21^38mKZE;3L$;$4=UXtqiXA_Zv5hbiIE4+Eo5H zJZNUeP`<>8Yy-MXfimk)b`{cFxkZag3c)YS)=$ecu1BC}Q@=gm6*zccziv|B$Y3^$ z_d?MRziZes;)2h@J^<=&(^h-HuB*!FBbO$kJVWz5CfZ?FkH69b?R-t_tKlk19W6Aa ze4sC0OO)_HRJJ{;NVu%AnXWIP@V0{#?69~{MsS(%!AZOA3<;Eq)B1bHIkB&9EXO6EJQ-c9U^pk-Gnqj1mGpNe^}+sv8dLm!a%i9v*yAQ z%@>;A8g*?PP?B&r+D+wvbF(6lF%X5H@nK+E$g?9(_*s5?d#MC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Sc!7wDb0Ng-shWGR68{Siv}r*e zt=ZZ($%Jq-jJCm3ysq+8b%7TUo}Txep0(w<4H02m2kmijHUwcK-uztl*Lfr6&v!g> z>q#eKafXq vfZb^FKWI{AuZw!_Z^+{EKd;tzIZp#XDONEjScUHFMu5Aw4Q`cb+CTq46H&C_ literal 0 HcmV?d00001 diff --git a/src/app/widgets/launch.py b/src/app/widgets/launch.py new file mode 100755 index 0000000..04f1cbd --- /dev/null +++ b/src/app/widgets/launch.py @@ -0,0 +1,19 @@ +import pygame +import os.path + +class LaunchScreen : + + @staticmethod + def _get_launch_image() : + imagePath = os.path.abspath(__file__).split(os.path.sep)[:-1] + imagePath.extend(['data', 'accueil.png']) + return os.path.sep.join(imagePath) + + def __init__(self) : + imagePath = LaunchScreen._get_launch_image() + self.image = pygame.image.load(imagePath) + size = self.image.get_size() + pygame.display.set_mode(size, pygame.NOFRAME) + screen = pygame.display.get_surface() + screen.blit(self.image, (0,0)) + pygame.display.flip() -- 2.20.1