Przeglądaj źródła

wxGUI/iclass: set focus for IClassExportAreasDialog

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54500 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 lat temu
rodzic
commit
1d1f540412
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      gui/wxpython/iclass/dialogs.py

+ 3 - 1
gui/wxpython/iclass/dialogs.py

@@ -9,6 +9,7 @@ Classes:
  - dialogs::IClassCategoryManagerDialog
  - dialogs::CategoryListCtrl
  - dialogs::IClassSignatureFileDialog
+ - dialogs::IClassExportAreasDialog
 
 (C) 2006-2011 by the GRASS Development Team
 This program is free software under the GNU General Public
@@ -530,7 +531,8 @@ class IClassExportAreasDialog(wx.Dialog):
         
         self.vectorNameCtrl.Bind(wx.EVT_TEXT, self.OnTextChanged)
         self.OnTextChanged(None)
-        
+        wx.CallAfter(self.vectorNameCtrl.SetFocus)
+
     def OnTextChanged(self, event):
         """!Name of new vector map given.