[GRASS-SVN] r67854 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 17 00:23:11 PST 2016
Author: martinl
Date: 2016-02-17 00:23:11 -0800 (Wed, 17 Feb 2016)
New Revision: 67854
Modified:
grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI/TextEntryDialog: set focus on text widget
Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py 2016-02-17 03:48:57 UTC (rev 67853)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py 2016-02-17 08:23:11 UTC (rev 67854)
@@ -2053,6 +2053,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