Prechádzať zdrojové kódy

wxGUI/TextEntryDialog: set focus on text widget
(merge https://trac.osgeo.org/grass/changeset/67854 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67855 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 rokov pred
rodič
commit
45e23c27b5
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      gui/wxpython/gui_core/dialogs.py

+ 1 - 0
gui/wxpython/gui_core/dialogs.py

@@ -2744,6 +2744,7 @@ class TextEntryDialog(wx.Dialog):
         self._textCtrl = wx.TextCtrl(self, id=wx.ID_ANY,
                                      value=defaultValue, validator=validator, style=textStyle)
         self._textCtrl.SetInitialSize(textSize)
+        wx.CallAfter(self._textCtrl.SetFocus)
         
         vbox.Add(item=self._textCtrl, proportion=0, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10)
         self._textCtrl.SetFocus()