Sfoglia il codice sorgente

wxGUI: fix https://trac.osgeo.org/grass/changeset/32002, enable button OnResult

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32047 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 anni fa
parent
commit
835777ba3a

+ 10 - 0
gui/wxpython/gui_modules/goutput.py

@@ -330,7 +330,17 @@ class GMConsole(wx.Panel):
             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)

+ 0 - 7
gui/wxpython/gui_modules/menuform.py

@@ -812,13 +812,6 @@ class mainFrame(wx.Frame):
         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()