[GRASS-SVN] r53926 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 19 14:01:42 PST 2012
Author: wenzeslaus
Date: 2012-11-19 14:01:42 -0800 (Mon, 19 Nov 2012)
New Revision: 53926
Modified:
grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
wxGUI/GConsole: improving r53925: Skip in handlers (co-author: annakrat)
Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py 2012-11-19 21:55:12 UTC (rev 53925)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py 2012-11-19 22:01:42 UTC (rev 53926)
@@ -246,7 +246,7 @@
self.progressbar = wx.Gauge(parent = self.panelOutput, id = wx.ID_ANY,
range = 100, pos = (110, 50), size = (-1, 25),
style = wx.GA_HORIZONTAL)
- self.progressbar.Bind(EVT_CMD_PROGRESS, self.OnCmdProgress)
+ self.Bind(EVT_CMD_PROGRESS, self.OnCmdProgress)
# text control for command output
self.cmdOutput = GStc(parent = self.panelOutput, id = wx.ID_ANY, margin = margin,
@@ -768,6 +768,7 @@
def OnCmdProgress(self, event):
"""!Update progress message info"""
self.progressbar.SetValue(event.value)
+ event.Skip()
def CmdProtocolSave(self):
"""Save commands protocol into the file"""
@@ -816,6 +817,7 @@
def OnCmdAbort(self, event):
"""!Abort running command"""
self.cmdThread.abort()
+ event.Skip()
def OnCmdRun(self, event):
"""!Run command"""
@@ -967,7 +969,8 @@
self.cmdOutput.Update()
time.sleep(2)
dialog.Close()
-
+ event.Skip()
+
def OnProcessPendingOutputWindowEvents(self, event):
wx.GetApp().ProcessPendingEvents()
More information about the grass-commit
mailing list