def startPrintInterface(filename):
#startPrintInterface is called from the main script when we want the printer interface to run in a separate process.
# It needs to run in a separate process, as any running python code blocks the GCode sender python code (http://wiki.python.org/moin/GlobalInterpreterLock).
+
+ sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
+
app = wx.App(False)
resources.setupLocalization(profile.getPreference('language'))
printWindowHandle = printWindow()
gcodeList.append(line)
prevLineType = lineType
gcode = gcodeInterpreter.gcode()
- gcode.loadList(gcodeList)
+ gcode.load(gcodeList)
#print "Loaded: %s (%d)" % (filename, len(gcodeList))
self.filename = filename
self.gcode = gcode