[GRASS-SVN] r48134 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 5 12:29:58 EDT 2011


Author: martinl
Date: 2011-09-05 09:29:57 -0700 (Mon, 05 Sep 2011)
New Revision: 48134

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm_dialogs.py
Log:
wxGUI/dbm: set focus for ModifyTableRecord


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm_dialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm_dialogs.py	2011-09-05 16:27:56 UTC (rev 48133)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm_dialogs.py	2011-09-05 16:29:57 UTC (rev 48134)
@@ -561,6 +561,7 @@
         cId = 0
         self.usebox = False
         self.cat = None
+        winFocus = False
         for column, value in data:
             if self.keyId == cId:
                 self.cat = int(value)
@@ -577,6 +578,9 @@
             else:
                 valueWin = wx.TextCtrl(parent = self.dataPanel, id = wx.ID_ANY,
                                        value = value, size = (250, -1))
+                if not winFocus:
+                    wx.CallAfter(valueWin.SetFocus)
+                    winFocus = True
             
             label = wx.StaticText(parent = self.dataPanel, id = wx.ID_ANY,
                                   label = column + ":")



More information about the grass-commit mailing list