Explorar o código

wxGUI: set focus on start button (wxPython 3)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64165 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=10) %!d(string=hai) anos
pai
achega
fdafdfa788
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      gui/wxpython/gis_set.py

+ 2 - 0
gui/wxpython/gis_set.py

@@ -795,6 +795,7 @@ class GRASSStartup(wx.Frame):
             if locationName:
                 # enable start button when location and mapset is selected
                 self.bstart.Enable()
+                self.bstart.SetFocus()
                 self.bmapset.Enable()
                 self.manageloc.Enable()
         else:
@@ -887,6 +888,7 @@ class GRASSStartup(wx.Frame):
             self.OnSelectLocation(None)
             self.lbmapsets.SetSelection(self.listOfMapsets.index(mapset))
             self.bstart.SetFocus()
+
             return True
         except StandardError as e:
             GError(parent = self,