Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/InstrumentPanel.py
blob: 03f011037409f910f029cbf42d263585f6b42819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gtk
from sugar.graphics import style

class InstrumentPanel(gtk.EventBox):
    def __init__(self):
        gtk.EventBox.__init__(self)
        self.Box = gtk.VBox()
        self.status_label = gtk.Label()
        self.Box.pack_start(self.status_label, True, True, 10)
        self.score_label = gtk.Label()
        self.Box.pack_start(self.score_label, True, True, 10)
        self.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("dark grey"))
        self.add(self.Box)
        self.show_all()

    def show(self, text):
        self.status_label.set_text(text)