Bladeren bron

wxGUI: set focus in NewVectorDialog to map name widget
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33353)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33354 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 jaren geleden
bovenliggende
commit
7ace08bb9e
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      gui/wxpython/gui_modules/gdialogs.py

+ 2 - 0
gui/wxpython/gui_modules/gdialogs.py

@@ -58,6 +58,8 @@ class NewVectorDialog(wx.Dialog):
                                    label=_("Name for new vector map:"))
         self.mapName = gselect.Select(parent=self.panel, id=wx.ID_ANY, size=globalvar.DIALOG_GSELECT_SIZE,
                                       type='vector', mapsets=[grassenv.GetGRASSVariable('MAPSET'),])
+        self.mapName.SetFocus()
+        
         self.table = wx.CheckBox(parent=self.panel, id=wx.ID_ANY,
                                  label=_("Create attribute table"))
         self.table.SetValue(True)