[GRASS-SVN] r39328 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 29 10:45:16 EDT 2009


Author: neteler
Date: 2009-09-29 10:45:16 -0400 (Tue, 29 Sep 2009)
New Revision: 39328

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
Log:
added search button since users always accidentially click on "Reload EPSG Codes" button

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py	2009-09-29 14:44:25 UTC (rev 39327)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py	2009-09-29 14:45:16 UTC (rev 39328)
@@ -1259,6 +1259,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),
@@ -1306,8 +1307,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),
@@ -1316,6 +1322,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