d083093f2b01edff2fb25c4e54cdfee0ead683ce
[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
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 while 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.run()
33 EventDispatcher.reset()