[GRASS-SVN] r54404 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 25 13:58:50 PST 2012


Author: martinl
Date: 2012-12-25 13:58:50 -0800 (Tue, 25 Dec 2012)
New Revision: 54404

Modified:
   grass/trunk/gui/wxpython/iclass/dialogs.py
Log:
wxGUI/iclass: class manager, set focus when editing color


Modified: grass/trunk/gui/wxpython/iclass/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/dialogs.py	2012-12-25 21:43:07 UTC (rev 54403)
+++ grass/trunk/gui/wxpython/iclass/dialogs.py	2012-12-25 21:58:50 UTC (rev 54404)
@@ -150,8 +150,7 @@
         gridSizer.Add(item = self.catList, pos = (0, 0), span = (3, 1), flag = wx.EXPAND)
         gridSizer.Add(item = addButton, pos = (0, 1), flag = wx.EXPAND)
         gridSizer.Add(item = deleteButton, pos = (1, 1), flag = wx.EXPAND)
-        
-        
+                
         sizer.Add(item = gridSizer, proportion = 1, flag = wx.EXPAND | wx.ALL, border = 5)
         mainSizer.Add(item = sizer, proportion = 1, flag = wx.EXPAND | wx.ALL, border = 5)
         
@@ -335,7 +334,8 @@
                 color = ':'.join(map(str, color))
                 self.SetVirtualData(currentItem, currentCol, color)
             dlg.Destroy()
-            
+            wx.CallAfter(self.SetFocus)
+        
         event.Skip()
         
     def OnCategorySelected(self, event):



More information about the grass-commit mailing list