Commit 4d39b266 authored by kliment's avatar kliment

Merge pull request #275 from D1plo1d/experimental

Patching the load command so that it works with the pronterface ui
parents b8f63cd1 ef6ffecf
......@@ -621,6 +621,9 @@ class pronsole(cmd.Cmd):
print "Disconnects from the printer"
def do_load(self,l):
self._do_load(l)
def _do_load(self,l):
if len(l)==0:
print "No file name given."
return
......
......@@ -173,6 +173,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.webInterface=webinterface.WebInterface(self)
self.webThread = Thread(target=webinterface.StartWebInterfaceThread, args=(self.webInterface, ))
self.webThread.start()
if(self.filename is not None):
self.do_load(self.filename)
def startcb(self):
self.starttime=time.time()
......@@ -1554,6 +1556,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
thread(target=self.skein_func).start()
thread(target=self.skein_monitor).start()
def do_load(self,l):
if hasattr(self, 'skeining'):
self.loadfile(None, l)
else:
self._do_load(l)
def loadfile(self,event,filename=None):
if self.skeining and self.skeinp is not None:
self.skeinp.terminate()
......
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