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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 8 09:05:15 EDT 2008


Author: martinl
Date: 2008-07-08 09:05:13 -0400 (Tue, 08 Jul 2008)
New Revision: 32047

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix r32002, enable button OnResult


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-07-08 11:45:28 UTC (rev 32046)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-07-08 13:05:13 UTC (rev 32047)
@@ -330,7 +330,17 @@
             if hasattr(self.parent.parent, "btn_abort"):
                 dialog.btn_abort.Enable(False)
 
+            if hasattr(self.parent.parent, "btn_cancel"):
+                dialog.btn_cancel.Enable(True)
+
+            if hasattr(self.parent.parent, "btn_clipboard"):
+                dialog.btn_clipboard.Enable(True)
+
+            if hasattr(self.parent.parent, "btn_help"):
+                dialog.btn_help.Enable(True)
+
             dialog.btn_run.Enable(True)
+            
             if dialog.get_dcmd is None and \
                    dialog.closebox.IsChecked():
                 time.sleep(1)

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-07-08 11:45:28 UTC (rev 32046)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-07-08 13:05:13 UTC (rev 32047)
@@ -812,13 +812,6 @@
         except IndexError:
             pass
 
-        for btn in (self.btn_run,
-                    self.btn_cancel,
-                    self.btn_clipboard,
-                    self.btn_help):
-            btn.Enable(True)
-        self.btn_abort.Enable(False)
-
     def OnCopy(self, event):
         """Copy the command"""
         cmddata = wx.TextDataObject()



More information about the grass-commit mailing list