[GRASS-SVN] r33257 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 4 11:04:50 EDT 2008
Author: martinl
Date: 2008-09-04 11:04:50 -0400 (Thu, 04 Sep 2008)
New Revision: 33257
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: bug fix -- trac #281 (query tool crashes when the user presses mouse buttons fast)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-09-04 14:43:44 UTC (rev 33256)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-09-04 15:04:50 UTC (rev 33257)
@@ -83,12 +83,15 @@
self.resultQ.put((requestId, self.requestCmd.run()))
- event = wxCmdDone(aborted=self.requestCmd.aborted,
+ try:
+ aborted = self.requestCmd.aborted
+ except AttributeError:
+ aborted = False
+
+ event = wxCmdDone(aborted=aborted,
time=requestTime,
pid=requestId)
-
- time.sleep(.1)
-
+
wx.PostEvent(self.parent, event)
def abort(self):
More information about the grass-commit
mailing list