[GRASS-SVN] r32048 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 8 09:07:10 EDT 2008
Author: martinl
Date: 2008-07-08 09:07:10 -0400 (Tue, 08 Jul 2008)
New Revision: 32048
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix r32002, enable button OnResult? (merged from trunk r32047)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-07-08 13:05:13 UTC (rev 32047)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-07-08 13:07:10 UTC (rev 32048)
@@ -329,7 +329,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/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-07-08 13:05:13 UTC (rev 32047)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-07-08 13:07:10 UTC (rev 32048)
@@ -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