Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scoreboard.py
diff options
context:
space:
mode:
authorMuriel de Souza Godoi <muriel@laptop.org>2007-10-09 13:28:07 (GMT)
committer Muriel de Souza Godoi <muriel@laptop.org>2007-10-09 13:28:07 (GMT)
commit31c6ee1613f4b335a56eb3da794042ddc636c91e (patch)
tree942c885d132946de14882ad19e12a0d4abab2816 /scoreboard.py
parent6f4c5ccceeaf86dff3d8ad92cc049c0437980a3c (diff)
Main release of create game mode. Game sharing is broken
Diffstat (limited to 'scoreboard.py')
-rwxr-xr-xscoreboard.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scoreboard.py b/scoreboard.py
index 9b88c27..847c38d 100755
--- a/scoreboard.py
+++ b/scoreboard.py
@@ -18,8 +18,11 @@
#
import gtk
+import logging
from playerscoreboard import PlayerScoreboard
+_logger = logging.getLogger('memorize-activity')
+
class Scoreboard(gtk.EventBox):
def __init__(self):
gtk.EventBox.__init__(self)
@@ -42,7 +45,7 @@ class Scoreboard(gtk.EventBox):
scroll.set_border_width(0)
scroll.get_child().set_property('shadow-type', gtk.SHADOW_NONE)
self.add(scroll)
- self.show()
+ self.show_all()
def add_buddy(self, widget, buddy, score):
### FIXME: this breaks when the body is empty
@@ -55,9 +58,7 @@ class Scoreboard(gtk.EventBox):
if score == -1:
player.set_wait_mode(True)
self.show_all()
-
-
def rem_buddy(self, widget, buddy):
self.vbox.remove(self.players[buddy])
del self.players[buddy] ### fix for self.players[id]
@@ -71,6 +72,7 @@ class Scoreboard(gtk.EventBox):
player.set_selected(True)
def increase_score(self, widget, buddy):
+ _logger.debug('Increase to: '+buddy.props.nick)
self.players[buddy].increase_score()
def reset(self, widget):