Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/infopanel.py
diff options
context:
space:
mode:
authorAndrés Ambrois <andresambrois@gmail.com>2008-07-21 21:27:55 (GMT)
committer Andrés Ambrois <andresambrois@gmail.com>2008-07-21 21:27:55 (GMT)
commitc8361dee621ec1b3c236b5ba1f5f7b93fc9fd5b9 (patch)
tree166706d5ad700579d5b71900f89e69032ecc2863 /infopanel.py
parentdae14728a595cd960c1874e437aafb9b9dc62bdd (diff)
Fixes and additions: Scorekeeping, basic Ko, Illegal moves, messages
Diffstat (limited to 'infopanel.py')
-rwxr-xr-xinfopanel.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/infopanel.py b/infopanel.py
index 8bb3718..9e7e16d 100755
--- a/infopanel.py
+++ b/infopanel.py
@@ -9,6 +9,9 @@ class InfoPanel(hippo.CanvasBox):
self.status_box = hippo.CanvasBox(spacing=4, padding=5,
orientation=hippo.ORIENTATION_VERTICAL)
self.append(self.status_box)
+ self.score_box = hippo.CanvasBox(spacing=4, padding=5,
+ orientation=hippo.ORIENTATION_VERTICAL)
+ self.append(self.score_box)
def show(self, text):
textwidget = hippo.CanvasText(text=text,
@@ -17,4 +20,12 @@ class InfoPanel(hippo.CanvasBox):
xalign=hippo.ALIGNMENT_CENTER)
self.status_box.remove_all()
self.status_box.append(textwidget)
+
+ def show_score(self, text):
+ textwidget = hippo.CanvasText(text=text,
+ font_desc=pango.FontDescription('Sans 10'),
+ color=style.COLOR_WHITE.get_int(),
+ xalign=hippo.ALIGNMENT_CENTER)
+ self.score_box.remove_all()
+ self.score_box.append(textwidget)