[GRASS-SVN] r40531 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 18 09:27:07 EST 2010
Author: martinl
Date: 2010-01-18 09:27:06 -0500 (Mon, 18 Jan 2010)
New Revision: 40531
Modified:
grass/trunk/gui/wxpython/gui_modules/location_wizard.py
Log:
wxGUI: set min column width fot ItemList
(merge r40530 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2010-01-18 14:25:54 UTC (rev 40530)
+++ grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2010-01-18 14:27:06 UTC (rev 40531)
@@ -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