瀏覽代碼

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 10 年之前
父節點
當前提交
fdafdfa788
共有 1 個文件被更改,包括 2 次插入0 次删除
  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,