\r
if action == self.actionList[0]:\r
resultFile.write(';TYPE:CUSTOM\n')\r
- resultFile.write(profile.getAlterationFileContents('start.gcode').encode('utf-8')\r
+ resultFile.write(profile.getAlterationFileContents('start.gcode').encode('utf-8'))\r
else:\r
#reset the extrusion length, and move to the next object center.\r
resultFile.write(';TYPE:CUSTOM\n')\r
- resultFile.write(profile.getAlterationFileContents('nextobject.gcode').encode('utf-8')\r
+ resultFile.write(profile.getAlterationFileContents('nextobject.gcode').encode('utf-8'))\r
resultFile.write(';PRINTNR:%d\n' % self.actionList.index(action))\r
profile.loadGlobalProfileFromString(oldProfile)\r
\r
wx.CallAfter(self.progressGauge2.SetValue, self.actionList.index(action) + 1)\r
\r
resultFile.write(';TYPE:CUSTOM\n')\r
- resultFile.write(profile.getAlterationFileContents('end.gcode').encode('utf-8')\r
+ resultFile.write(profile.getAlterationFileContents('end.gcode').encode('utf-8'))\r
resultFile.close()\r
self.abort = True\r
wx.CallAfter(self.abortButton.SetLabel, 'Close')\r