Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scoreboard.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-07-14 11:28:35 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-07-14 11:28:35 (GMT)
commitb2da2ffe0b74dda78a825c910fca5f3620b9b6e7 (patch)
treec2d56d56befcf58c455cea39eddc73a8b2021fa0 /scoreboard.py
parentdc5d86958fad400a3add59d7df2911a4ea68a828 (diff)
- added new model
- the config files for games have changed to use xml added reading and writing of the config files - adopted the ui to use the model - adopted the dbus methods to send the new grid when a game changes - fixed some buddy left issues - cleaned the misc folder
Diffstat (limited to 'scoreboard.py')
-rwxr-xr-xscoreboard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scoreboard.py b/scoreboard.py
index 0527b34..9b88c27 100755
--- a/scoreboard.py
+++ b/scoreboard.py
@@ -45,6 +45,7 @@ class Scoreboard(gtk.EventBox):
self.show()
def add_buddy(self, widget, buddy, score):
+ ### FIXME: this breaks when the body is empty
nick = buddy.props.nick
stroke_color, fill_color = buddy.props.color.split(',')
player = PlayerScoreboard(nick, fill_color, stroke_color, score)
@@ -59,7 +60,7 @@ class Scoreboard(gtk.EventBox):
def rem_buddy(self, widget, buddy):
self.vbox.remove(self.players[buddy])
- del self.players[id]
+ del self.players[buddy] ### fix for self.players[id]
def set_selected(self, widget, buddy):
if self.current_buddy <> None: