[GRASS-SVN] r32116 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 15 01:52:38 EDT 2008
Author: cmbarton
Date: 2008-07-15 01:52:37 -0400 (Tue, 15 Jul 2008)
New Revision: 32116
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
Location and mapset lists automatically display previously selected values (if any).
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2008-07-15 05:48:25 UTC (rev 32115)
+++ grass/trunk/gui/wxpython/gis_set.py 2008-07-15 05:52:37 UTC (rev 32116)
@@ -57,7 +57,7 @@
wx.Frame.__init__(self, parent=parent, id=id, style=style)
- self.panel = wx.Panel(parent=self, id=wx.ID_ANY)
+ self.panel = wx.Panel(parent=self, id=wx.ID_ANY)
#
# graphical elements
@@ -127,7 +127,7 @@
self.manageloc = wx.Choice(parent=self.panel, id=wx.ID_ANY,
choices=[_('Rename mapset'), _('Rename location'),
_('Delete mapset'), _('Delete location')])
- self.manageloc.SetSelection(0)
+ self.manageloc.SetSelection(0)
# textinputs
self.tgisdbase = wx.TextCtrl(parent=self.panel, id=wx.ID_ANY, value="", size=(300, -1),
@@ -200,6 +200,7 @@
self.UpdateLocations(self.gisdbase)
try:
self.lblocations.SetSelection(self.listOfLocations.index(location))
+ self.lblocations.EnsureVisible(self.listOfLocations.index(location))
except ValueError:
print >> sys.stderr, _("ERROR: Location <%s> not found") % \
(location)
@@ -210,6 +211,7 @@
if mapset:
try:
self.lbmapsets.SetSelection(self.listOfMapsets.index(mapset))
+ self.lbmapsets.EnsureVisible(self.listOfMapsets.index(mapset))
except ValueError:
self.lbmapsets.Clear()
print >> sys.stderr, _("ERROR: Mapset <%s> not found") % \
More information about the grass-commit
mailing list