changeset 546:e57a0cf38cc7

And fix headings, now that it's easy to do so.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 28 Nov 2009 11:09:01 +0000
parents 56a3a3f54e3d
children 1456bf2ff02e
files gamelib/toolbar.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/toolbar.py	Sat Nov 28 11:00:14 2009 +0000
+++ b/gamelib/toolbar.py	Sat Nov 28 11:09:01 2009 +0000
@@ -219,7 +219,7 @@
 
     def add_heading(self, text):
         self.tr()
-        self.td(mklabel(text), colspan=2)
+        self.td(mklabel(text, width=constants.TOOLBAR_WIDTH, align=0), colspan=2)
 
     def add_tool_button(self, text, tool, price=None, cursor=None):
         if price is not None: