[GRASS-SVN] r67855 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 17 00:25:29 PST 2016


Author: martinl
Date: 2016-02-17 00:25:29 -0800 (Wed, 17 Feb 2016)
New Revision: 67855

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI/TextEntryDialog: set focus on text widget
                       (merge r67854 from trunk)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py	2016-02-17 08:23:11 UTC (rev 67854)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py	2016-02-17 08:25:29 UTC (rev 67855)
@@ -2744,6 +2744,7 @@
         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()



More information about the grass-commit mailing list