Bläddra i källkod

wxGUI: bugfix - trac https://trac.osgeo.org/grass/ticket/288 - "Set options" for scale and N arrow fails
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33297)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33298 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 år sedan
förälder
incheckning
e204813472
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      gui/wxpython/gui_modules/menuform.py

+ 3 - 2
gui/wxpython/gui_modules/menuform.py

@@ -1236,8 +1236,9 @@ class cmdPanel(wx.Panel):
                     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
 	#