Browse Source

wxGUI/welcome screen: focus 'Start GRASS' when creating new mapset

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43029 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
0d41f55ce5
1 changed files with 7 additions and 5 deletions
  1. 7 5
      gui/wxpython/gis_set.py

+ 7 - 5
gui/wxpython/gis_set.py

@@ -124,17 +124,17 @@ class GRASSStartup(wx.Frame):
 
         # 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 @@ class GRASSStartup(wx.Frame):
                 dlg.ShowModal()
                 dlg.Destroy()
                 return False
-
+        
+        self.bstart.SetFocus()
+        
         return True
 
     def OnStart(self, event):