be69eb992196803039790753a141a16e89e8a32d
[minwii.git] / src / app / minwii.py
1 # -*- coding: utf-8 -*-
2 """
3 l'application winwii
4
5 $Id$
6 $URL$
7 """
8
9 from pgu.gui import Desktop
10 from pgu.gui import QUIT
11 from widgets.home import Home
12 from widgets.playingscreen import SongPlayingScreen, PlayingScreen
13 from synth import Synth
14 from eventutils import EventDispatcher
15 from musicxml import musicXml2Song
16
17 class MinWii(object):
18
19 def __init__(self) :
20 app = Desktop()
21 synth = Synth()
22 synth.program_select(0, 0, 0)
23
24 if True :
25 #home = Home()
26 #home.connect(QUIT, app.quit)
27 #app.run(home)
28 #app.close(home)
29
30 song = musicXml2Song('/Users/pinbe/dev/minwii/src/songs/chansons/bon_tabac.xml')
31 playingScreen = SongPlayingScreen(synth, song)
32 #playingScreen = PlayingScreen(synth)
33 playingScreen.run()
34 EventDispatcher.reset()