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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 6 08:07:29 EDT 2008


Author: martinl
Date: 2008-09-06 08:07:28 -0400 (Sat, 06 Sep 2008)
New Revision: 33297

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: bugfix - trac #288 - "Set options" for scale and N arrow fails


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-09-06 11:47:59 UTC (rev 33296)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-09-06 12:07:28 UTC (rev 33297)
@@ -1236,8 +1236,9 @@
                     txt.SetToolTipString(tooltip)
 
             if p == first_param:
-                self.FindWindowById(p['wxId']).SetFocus()
-        
+                if type(p['wxId']) == type(1):
+                    self.FindWindowById(p['wxId']).SetFocus()
+            
 	#
 	# determine panel size
 	#



More information about the grass-commit mailing list