[GRASS-SVN] r32110 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 15 01:20:17 EDT 2008
Author: cmbarton
Date: 2008-07-15 01:20:16 -0400 (Tue, 15 Jul 2008)
New Revision: 32110
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
Fixed location and mapset list widths in GRASS startup.
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2008-07-14 20:56:17 UTC (rev 32109)
+++ grass/trunk/gui/wxpython/gis_set.py 2008-07-15 05:20:16 UTC (rev 32110)
@@ -138,6 +138,8 @@
self.lblocations = GListBox(parent=self.lpanel,
id=wx.ID_ANY, size=(180, 200),
choices=self.listOfLocations)
+
+ self.lblocations.SetColumnWidth(0, 180)
# TODO: sort; but keep PERMANENT on top of list
# Mapsets
@@ -145,6 +147,8 @@
self.lbmapsets = GListBox(parent=self.mpanel,
id=wx.ID_ANY, size=(180, 200),
choices=self.listOfMapsets)
+
+ self.lbmapsets.SetColumnWidth(0, 180)
# layout & properties
self._set_properties()
@@ -759,6 +763,8 @@
if idx in disabled:
self.SetItemTextColour(idx, wx.Colour(150, 150, 150))
idx += 1
+
+ #self.SetColumnWidth(0, wx.LIST_AUTOSIZE)
def Clear(self):
self.DeleteAllItems()
More information about the grass-commit
mailing list