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

class InfoPanel(gtk.VBox):
    def __init__(self):
        gtk.VBox.__init__(self)
        self.status_label = gtk.Label('Status')
        self.pack_start(self.status_label, False, True, 10)
        self.score_label = gtk.Label('Score')
        self.pack_start(self.score_label,  False, True, 10)
        self.show_all()

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

    def show_score(self,  text):
        self.score_label.set_text(text)