[GRASS-SVN] r40530 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 18 09:25:54 EST 2010
Author: martinl
Date: 2010-01-18 09:25:54 -0500 (Mon, 18 Jan 2010)
New Revision: 40530
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
Log:
wxGUI: set min column width fot ItemList
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2010-01-18 14:18:23 UTC (rev 40529)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2010-01-18 14:25:54 UTC (rev 40530)
@@ -494,13 +494,12 @@
if self.sourceData:
self.Populate()
- #FIXME: auto sizing doesn't work for some reason
- for i in range(self.GetColumnCount()):
- self.SetColumnWidth(i, wx.LIST_AUTOSIZE)
- else:
- for i in range(self.GetColumnCount()):
- self.SetColumnWidth(i, wx.LIST_AUTOSIZE_USEHEADER)
-
+
+ for i in range(self.GetColumnCount()):
+ self.SetColumnWidth(i, wx.LIST_AUTOSIZE_USEHEADER)
+ if self.GetColumnWidth(i) < 80:
+ self.SetColumnWidth(i, 80)
+
#
# listmix
#
More information about the grass-commit
mailing list