blob: 783c1111c48cccaaf378e5c51842f98e832b6fe8 (
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, True, True, 10)
self.score_label = gtk.Label('Score')
self.pack_start(self.score_label, True, 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)
|