Push gui updates to a separate thread

master
Kliment 2011-08-23 14:33:28 +02:00
parent 9350ffa6d0
commit b5c182a19a
1 changed files with 2 additions and 2 deletions

View File

@ -163,10 +163,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if(layer!=self.curlayer):
self.curlayer=layer
self.gviz.hilight=[]
wx.CallAfter(self.gviz.setlayer,layer)
threading.Thread(target=wx.CallAfter,args=(self.gviz.setlayer,layer)).start()
except:
pass
self.gviz.addgcode(line,hilight=1)
threading.Thread(target=self.gviz.addgcode,args=(line,1)).start()
#self.gwindow.p.addgcode(line,hilight=1)
def do_extrude(self,l=""):