comparison gamelib/gameboard.py @ 453:4bce845fbe6c

Redraw counters after restoring game.
author Simon Cross <hodgestar@gmail.com>
date Sat, 21 Nov 2009 20:32:26 +0000
parents 17e07b4cdeb4
children 96dbf2c8506e
comparison
equal deleted inserted replaced
452:17e07b4cdeb4 453:4bce845fbe6c
850 self.add_building(building) 850 self.add_building(building)
851 for attr in self.SIMPLIFY: 851 for attr in self.SIMPLIFY:
852 if attr in ('chickens', 'buildings'): 852 if attr in ('chickens', 'buildings'):
853 continue 853 continue
854 setattr(self, attr, getattr(newself, attr)) 854 setattr(self, attr, getattr(newself, attr))
855 self.redraw_counters()
855 856
856 857
857 class TextDialog(gui.Dialog): 858 class TextDialog(gui.Dialog):
858 def __init__(self, title, text, **params): 859 def __init__(self, title, text, **params):
859 title_label = gui.Label(title) 860 title_label = gui.Label(title)