Tidy up alignment and expanding of cells in Player Stats window

This commit is contained in:
sqlcoder 2009-05-28 20:45:25 +01:00
parent e0e4eb4c3c
commit 91bb9fc65f

View File

@ -259,11 +259,14 @@ class GuiPlayerStats (threading.Thread):
if col == 1 and holecards:
listcols[col].pack_start(textcell, expand=True)
else:
listcols[col].pack_start(textcell, expand=False)
listcols[col].pack_start(textcell, expand=True)
listcols[col].add_attribute(textcell, 'text', col)
listcols[col].set_expand(True)
else:
listcols[col].pack_start(numcell, expand=False)
listcols[col].pack_start(numcell, expand=True)
listcols[col].add_attribute(numcell, 'text', col)
listcols[col].set_alignment(1.0)
listcols[col].set_expand(True)
rows = len(result) # +1 for title row
@ -435,6 +438,3 @@ class GuiPlayerStats (threading.Thread):
detailDialog.destroy()