[GRASS-SVN] r54431 - grass/trunk/gui/wxpython/location_wizard

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 27 14:07:39 PST 2012


Author: martinl
Date: 2012-12-27 14:07:38 -0800 (Thu, 27 Dec 2012)
New Revision: 54431

Modified:
   grass/trunk/gui/wxpython/location_wizard/wizard.py
Log:
wxGUI/Location Wizard: prj file wildcard added


Modified: grass/trunk/gui/wxpython/location_wizard/wizard.py
===================================================================
--- grass/trunk/gui/wxpython/location_wizard/wizard.py	2012-12-27 20:41:13 UTC (rev 54430)
+++ grass/trunk/gui/wxpython/location_wizard/wizard.py	2012-12-27 22:07:38 UTC (rev 54431)
@@ -21,7 +21,7 @@
  - wizard::LocationWizard
  - wizard::WizardWithHelpButton
 
-(C) 2007-2011 by the GRASS Development Team
+(C) 2007-2012 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -1218,12 +1218,12 @@
     for setting coordinate system parameters"""
 
     def __init__(self, wizard, parent):
-        TitledPage.__init__(self, wizard, _("Select WKT file"))
+        TitledPage.__init__(self, wizard, _("Select WKT or PRJ file"))
 
         self.wktfile = ''
 
         # create controls
-        self.lfile= self.MakeLabel(_("WKT file:"))
+        self.lfile= self.MakeLabel(_("WKT or PRJ file:"))
         self.tfile = self.MakeTextCtrl(size = (300,-1))
         self.bbrowse = self.MakeButton(_("Browse"))
 
@@ -1274,9 +1274,9 @@
 
     def OnBrowse(self, event):
         """!Choose file"""
-        dlg = wx.FileDialog(self,
-                            _("Select WKT file"),
-                            os.getcwd(), "", "*.*", wx.OPEN)
+        dlg = wx.FileDialog(parent = self, message = _("Select WKT or PRJ file"),
+                            defaultDir = os.getcwd(), 
+                            wildcard = "PRJ files (*.prj)|*.prj|Files (*.*)|*.*", style = wx.OPEN)
         if dlg.ShowModal() == wx.ID_OK:
             path = dlg.GetPath()
             self.tfile.SetValue(path)



More information about the grass-commit mailing list