[GRASS-SVN] r33298 - grass/trunk/gui/wxpython/gui_modules

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


Author: martinl
Date: 2008-09-06 08:08:37 -0400 (Sat, 06 Sep 2008)
New Revision: 33298

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: bugfix - trac #288 - "Set options" for scale and N arrow fails
(merge from devbr6, r33297)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-09-06 12:07:28 UTC (rev 33297)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-09-06 12:08:37 UTC (rev 33298)
@@ -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