Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scoreboard.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-23 21:20:48 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-23 21:20:48 (GMT)
commitcc06afa04cd0f729fcaddf82a18bb0e67de75847 (patch)
tree4f599a1756914a1801944a5d1b4667195b24c2ce /scoreboard.py
parenta436ef6447bbe650e8ed4ef6ba35b6c3b9ca8eac (diff)
make scoreboard screen-resolution independent
Diffstat (limited to 'scoreboard.py')
-rw-r--r--scoreboard.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/scoreboard.py b/scoreboard.py
index 7b20bd5..e57cfae 100644
--- a/scoreboard.py
+++ b/scoreboard.py
@@ -35,14 +35,12 @@ class Scoreboard(gtk.EventBox):
fill_box.show()
self.vbox.pack_end(fill_box, True, True)
- scroll = gtk.ScrolledWindow()
- scroll.props.shadow_type = gtk.SHADOW_NONE
- scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
- scroll.add_with_viewport(self.vbox)
- scroll.set_border_width(0)
- scroll.get_child().set_property('shadow-type', gtk.SHADOW_NONE)
- self.add(scroll)
+ self.add(self.vbox)
self.show_all()
+
+ def change_game(self, widget, data, grid):
+ for buddy in self.players.keys():
+ self.players[buddy].change_game(len(grid))
def add_buddy(self, widget, buddy, score):
### FIXME: this breaks when the body is empty
@@ -51,7 +49,7 @@ class Scoreboard(gtk.EventBox):
player = PlayerScoreboard(nick, fill_color, stroke_color, score)
player.show()
self.players[buddy]=player
- self.vbox.pack_start(player, False, True)
+ self.vbox.pack_start(player, False, False)
if score == -1:
player.set_wait_mode(True)
self.show_all()