[GRASS-SVN] r43029 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 9 15:25:46 EDT 2010


Author: martinl
Date: 2010-08-09 19:25:46 +0000 (Mon, 09 Aug 2010)
New Revision: 43029

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI/welcome screen: focus 'Start GRASS' when creating new mapset


Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2010-08-09 19:18:38 UTC (rev 43028)
+++ grass/trunk/gui/wxpython/gis_set.py	2010-08-09 19:25:46 UTC (rev 43029)
@@ -124,17 +124,17 @@
 
         # buttons
         self.bstart = wx.Button(parent=self.panel, id=wx.ID_ANY,
-                                label=_("Start GRASS"))
+                                label=_("Start &GRASS"))
         self.bstart.SetDefault()
         self.bexit = wx.Button(parent=self.panel, id=wx.ID_EXIT)
         self.bstart.SetMinSize((180, self.bexit.GetSize()[1]))
         self.bhelp = wx.Button(parent=self.panel, id=wx.ID_HELP)
         self.bbrowse = wx.Button(parent=self.panel, id=wx.ID_ANY,
-                                 label=_("Browse"))
+                                 label=_("&Browse"))
         self.bmapset = wx.Button(parent=self.panel, id=wx.ID_ANY,
-                                 label=_("Create mapset"))
+                                 label=_("&Create mapset"))
         self.bwizard = wx.Button(parent=self.panel, id=wx.ID_ANY,
-                                 label=_("Location wizard"))
+                                 label=_("&Location wizard"))
         self.manageloc = wx.Choice(parent=self.panel, id=wx.ID_ANY,
                                    choices=[_('Rename mapset'), _('Rename location'),
                                             _('Delete mapset'), _('Delete location')])
@@ -728,7 +728,9 @@
                 dlg.ShowModal()
                 dlg.Destroy()
                 return False
-
+        
+        self.bstart.SetFocus()
+        
         return True
 
     def OnStart(self, event):



More information about the grass-commit mailing list