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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 1 07:45:50 EDT 2008


Author: martinl
Date: 2008-08-01 07:45:50 -0400 (Fri, 01 Aug 2008)
New Revision: 32444

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix flags label/description in dialog (merge from trunk r32443)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-01 11:43:20 UTC (rev 32443)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-01 11:45:50 UTC (rev 32444)
@@ -35,10 +35,10 @@
  Method added to automatically re-run with pythonw on a Mac.
 
 @author Jan-Oliver Wagner <jan at intevation.de>
-Bernhard Reiter <bernhard at intevation.de>
-Michael Barton, Arizona State University
-Daniel Calvelo <dca.gis at gmail.com>
-Martin Landa <landa.martin at gmail.com>
+ at author Bernhard Reiter <bernhard at intevation.de>
+ at author Michael Barton, Arizona State University
+ at author Daniel Calvelo <dca.gis at gmail.com>
+ at author Martin Landa <landa.martin at gmail.com>
 
 @todo
  - verify option value types
@@ -944,9 +944,8 @@
         for f in visible_flags:
             which_sizer = tabsizer[ f['guisection'] ]
             which_panel = tab[ f['guisection'] ]
-            # if label is given -> label and description -> tooltip
-            # otherwise description -> lavel
-            if p.get('label','') != '':
+            # if label is given: description -> tooltip
+            if f.get('label','') != '':
                 title = text_beautify( f['label'] )
                 tooltip = text_beautify ( f['description'] )
             else:



More information about the grass-commit mailing list