[GRASS-SVN] r39327 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 29 10:44:25 EDT 2009
Author: neteler
Date: 2009-09-29 10:44:25 -0400 (Tue, 29 Sep 2009)
New Revision: 39327
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
added search button since users always accidentially click on "Reload EPSG Codes" button
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2009-09-29 13:36:06 UTC (rev 39326)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2009-09-29 14:44:25 UTC (rev 39327)
@@ -1260,6 +1260,7 @@
# buttons
self.bbrowse = self.MakeButton(_("Browse"))
self.bbcodes = self.MakeButton(_("Reload EPSG Codes"))
+ self.bbsearch = self.MakeButton(_("Search"))
# search box
self.searchb = wx.SearchCtrl(self, size=(200,-1),
@@ -1307,8 +1308,13 @@
self.sizer.Add(item=self.bbcodes,
flag=wx.ALIGN_LEFT |
wx.ALIGN_CENTER_VERTICAL |
+ wx.ALL, border=5, pos=(2, 4))
+ self.sizer.Add(item=self.bbsearch,
+ flag=wx.ALIGN_LEFT |
+ wx.ALIGN_CENTER_VERTICAL |
wx.ALL, border=5, pos=(3, 4))
+
self.sizer.AddGrowableRow(4)
self.sizer.Add(item=self.epsglist,
flag=wx.ALIGN_LEFT | wx.EXPAND, pos=(4, 1),
@@ -1317,6 +1323,7 @@
# events
self.bbrowse.Bind(wx.EVT_BUTTON, self.OnBrowse)
self.bbcodes.Bind(wx.EVT_BUTTON, self.OnBrowseCodes)
+ self.bbsearch.Bind(wx.EVT_BUTTON, self.OnSearch)
self.tcode.Bind(wx.EVT_TEXT, self.OnText)
self.tcode.Bind(wx.EVT_TEXT_ENTER, self.OnText)
self.epsglist.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected)
More information about the grass-commit
mailing list