瀏覽代碼

wxGUI: postpone wxCmdDone event

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32407 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 年之前
父節點
當前提交
214727ab87
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      gui/wxpython/gui_modules/goutput.py

+ 1 - 2
gui/wxpython/gui_modules/goutput.py

@@ -76,6 +76,7 @@ class CmdThread(threading.Thread):
             event = wxCmdDone(aborted=self.requestCmd.aborted,
                               time=self.requestTime,
                               pid=requestId)
+            time.sleep(.1)
             wx.PostEvent(self.parent, event)
 
     def abort(self):
@@ -432,8 +433,6 @@ class GMConsole(wx.Panel):
         
     def OnCmdDone(self, event):
         """Command done (or aborted)"""
-        time.sleep(.1) # wait for stdout
-        
         if event.aborted:
             # Thread aborted (using our convention of None return)
             self.WriteLog(_('Please note that the data are left in incosistent stage '