c4fdc23e5963769a708121407fe16a944e3290c3
[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 PlayingScreen
13 from synth import Synth
14 from eventutils import EventDispatcher
15
16 class MinWii(object):
17
18 def __init__(self) :
19 app = Desktop()
20 synth = Synth()
21 synth.program_select(0, 0, 0)
22
23 while True :
24 home = Home()
25 home.connect(QUIT, app.quit)
26 app.run(home)
27 app.close(home)
28
29 playingScreen = PlayingScreen(synth)
30 playingScreen.run()
31 EventDispatcher.reset()