comparison gamelib/toolbar.py @ 593:967e351872ed

Enlarge price reference to cater for larger fonts.
author Simon Cross <hodgestar@gmail.com>
date Sat, 28 Nov 2009 23:45:42 +0000
parents 1356875ce686
children
comparison
equal deleted inserted replaced
592:441077fab928 593:967e351872ed
120 def show_prices(self): 120 def show_prices(self):
121 """Popup dialog of prices""" 121 """Popup dialog of prices"""
122 122
123 tbl = gui.Table() 123 tbl = gui.Table()
124 tbl.tr() 124 tbl.tr()
125 doc = gui.Document(width=510) 125 doc = gui.Document(width=540)
126 space = doc.style.font.size(" ") 126 space = doc.style.font.size(" ")
127 for header in ['Item', 'Buy Price', 'Sell Price', 'Repair Price']: 127 for header in ['Item', 'Buy Price', 'Sell Price', 'Repair Price']:
128 doc.add(misc.make_box("<b>%s</b>" % header, markup=True)) 128 doc.add(misc.make_box("<b>%s</b>" % header, markup=True))
129 doc.br(space[1]) 129 doc.br(space[1])
130 for building in buildings.BUILDINGS: 130 for building in buildings.BUILDINGS: