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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 4 01:17:56 EDT 2011


Author: cmbarton
Date: 2011-11-03 22:17:56 -0700 (Thu, 03 Nov 2011)
New Revision: 49087

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxgui: remove unneeded output window split and command prompt buttons from module dialogs. Add clear output button to button sizer.

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2011-11-03 20:34:24 UTC (rev 49086)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2011-11-04 05:17:56 UTC (rev 49087)
@@ -483,11 +483,17 @@
         self.btn_cancel.SetToolTipString(_("Close this window without executing the command (Ctrl+Q)"))
         btnsizer.Add(item = self.btn_cancel, proportion = 0, flag = wx.ALL | wx.ALIGN_CENTER, border = 10)
         self.btn_cancel.Bind(wx.EVT_BUTTON, self.OnCancel)
+
+        self.btnOutputClear = wx.Button(parent = self.panel, id = wx.ID_CLEAR)
+        self.btnOutputClear.SetToolTipString(_("Clear output window content"))
+        btnsizer.Add(item = self.btnOutputClear, proportion = 0, flag = wx.ALL | wx.ALIGN_CENTER, border = 10)
+        self.btnOutputClear.Bind(wx.EVT_BUTTON, self.goutput.ClearHistory)
+
         if self.get_dcmd is not None: # A callback has been set up
             btn_apply = wx.Button(parent = self.panel, id = wx.ID_APPLY)
             btn_ok = wx.Button(parent = self.panel, id = wx.ID_OK)
             btn_ok.SetDefault()
-            
+
             btnsizer.Add(item = btn_apply, proportion = 0,
                          flag = wx.ALL | wx.ALIGN_CENTER,
                          border = 10)
@@ -838,6 +844,8 @@
         ### add 'command output' tab regardless standalone dialog
         if self.parent.GetName() ==  "MainFrame" and self.parent.get_dcmd is None:
             self.goutput = goutput.GMConsole(parent = self, margin = False)
+            self.goutput.Unsplit()
+            self.outputBox = self.goutput.outputBox
             self.outpage = self.notebook.AddPage(page = self.goutput, text = _("Command output"), name = 'output')
         else:
             self.goutput = None



More information about the grass-commit mailing list