changeset 148:225be1220053

Reduce gui glitch effect
author Neil Muller <drnlmuller@gmail.com>
date Thu, 03 Sep 2009 20:00:10 +0000
parents 1cb47e6b8f61
children 2a1064fae608
files gamelib/gameboard.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Thu Sep 03 18:56:40 2009 +0000
+++ b/gamelib/gameboard.py	Thu Sep 03 20:00:10 2009 +0000
@@ -28,7 +28,7 @@
 
 def mkcountupdate(counter):
     def update_counter(self, value):
-        getattr(self, counter).update_value("%s" % value)
+        getattr(self, counter).update_value("%5s" % value)
         self.repaint()
     return update_counter
 
@@ -83,12 +83,12 @@
         button = gui.Button(text)
         button.connect(gui.CLICK, func)
         self.tr()
-        self.add(button)
+        self.add(button, colspan=2)
 
     def add_counter(self, icon, label):
         self.tr()
         if icon:
-            self.td(icon, align=-1)
+            self.td(icon, align=-1, width=self.rect.w/2)
         self.add(label)
 
 class VidWidget(gui.Widget):