[GRASS-SVN] r32111 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 15 01:21:17 EDT 2008


Author: cmbarton
Date: 2008-07-15 01:21:17 -0400 (Tue, 15 Jul 2008)
New Revision: 32111

Modified:
   grass/branches/develbranch_6/gui/wxpython/gis_set.py
Log:
Fixed location and mapset list widths in GRASS startup.

Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py	2008-07-15 05:20:16 UTC (rev 32110)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py	2008-07-15 05:21:17 UTC (rev 32111)
@@ -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()
@@ -357,7 +361,7 @@
 
     def _read_grassrc(self):
         """
-        Read variables from $HOME/.grassrc6 file
+        Read variables from $HOME/.grassrc7 file
         """
 
         grassrc = {}
@@ -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