Commit b5c182a1 authored by Kliment's avatar Kliment

Push gui updates to a separate thread

parent 9350ffa6
...@@ -163,10 +163,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -163,10 +163,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if(layer!=self.curlayer): if(layer!=self.curlayer):
self.curlayer=layer self.curlayer=layer
self.gviz.hilight=[] self.gviz.hilight=[]
wx.CallAfter(self.gviz.setlayer,layer) threading.Thread(target=wx.CallAfter,args=(self.gviz.setlayer,layer)).start()
except: except:
pass pass
self.gviz.addgcode(line,hilight=1) threading.Thread(target=self.gviz.addgcode,args=(line,1)).start()
#self.gwindow.p.addgcode(line,hilight=1) #self.gwindow.p.addgcode(line,hilight=1)
def do_extrude(self,l=""): def do_extrude(self,l=""):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment