comparison gamelib/gameboard.py @ 449:938498b8cd03

Fix toolbar alignment
author Neil Muller <drnlmuller@gmail.com>
date Sat, 21 Nov 2009 20:11:08 +0000
parents f04a2490c35f
children d0f586647dfa
comparison
equal deleted inserted replaced
448:92e7a641b4a6 449:938498b8cd03
114 """Replace the toolbar""" 114 """Replace the toolbar"""
115 td = self.toolbar.container 115 td = self.toolbar.container
116 td.remove(self.toolbar) 116 td.remove(self.toolbar)
117 td.add(new_toolbar, 0, 0) 117 td.add(new_toolbar, 0, 0)
118 self.toolbar = new_toolbar 118 self.toolbar = new_toolbar
119 self.toolbar.rect.size = self.toolbar.resize(height=td.rect.height) 119 self.toolbar.rect.size = self.toolbar.resize()
120 td.resize()
121 td.repaint() 120 td.repaint()
122 121
123 def update(self): 122 def update(self):
124 self.tvw.reupdate() 123 self.tvw.reupdate()
125 124