From 91bb9fc65f6a9b057a28e092fe51419b4918a863 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Thu, 28 May 2009 20:45:25 +0100 Subject: [PATCH] Tidy up alignment and expanding of cells in Player Stats window --- pyfpdb/GuiPlayerStats.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyfpdb/GuiPlayerStats.py b/pyfpdb/GuiPlayerStats.py index a7f3abf1..311d9a10 100644 --- a/pyfpdb/GuiPlayerStats.py +++ b/pyfpdb/GuiPlayerStats.py @@ -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() - - -