Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/infopanel.py
blob: 36f8ab4c735418ba4663e0885dcc7cc666f13b92 (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)
        self.score_label = gtk.Label('Score')
        self.pack_start(self.score_label,  False)
        self.show_all()

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

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