diff options
author | Thorin <toz@thorin-kerrs-macbook-3.local> | 2010-03-19 03:51:27 (GMT) |
---|---|---|
committer | Thorin <toz@thorin-kerrs-macbook-3.local> | 2010-03-19 03:51:27 (GMT) |
commit | 76ca747b364bbfa06bf0869f7e62df2947672d48 (patch) | |
tree | 8e8dea41a08bf99af0a98dcf82e8ddcc5f95098f /InstrumentPanel.py |
Create repository and load
Diffstat (limited to 'InstrumentPanel.py')
-rw-r--r-- | InstrumentPanel.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/InstrumentPanel.py b/InstrumentPanel.py new file mode 100644 index 0000000..03f0110 --- /dev/null +++ b/InstrumentPanel.py @@ -0,0 +1,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) + +
\ No newline at end of file |