self.prevStep = 'start'\r
self.totalDoneFactor = 0.0\r
self.startTime = time.time()\r
+ self.sliceStartTime = time.time()\r
\r
#How long does each step take compared to the others. This is used to make a better scaled progress bar, and guess time left.\r
# TODO: Duplicate with sliceProgressPanel, move to sliceRun.\r
os.remove(action.filename[: action.filename.rfind('.')] + "_export.project_tmp")\r
\r
wx.CallAfter(self.progressGauge.SetValue, 10000)\r
+ self.totalDoneFactor = 0.0\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'))\r
resultFile.close()\r
self.abort = True\r
+ sliceTime = time.time() - self.sliceStartTime\r
+ wx.CallAfter(self.statusText.SetLabel, 'Slicing took: %d:%d' % (sliceTime / 60, sliceTime % 60))\r
wx.CallAfter(self.abortButton.SetLabel, 'Close')\r
\r
def main():\r
print filename, self.filelist.index(filename)
if self.filelist.index(filename) > 0:
profile.putProfileSetting('fan_enabled', 'False')
- profile.putProfileSetting('skirt_lines', '0')
+ profile.putProfileSetting('skirt_line_count', '0')
if len(self.filelist) > 1:
profile.putProfileSetting('add_start_end_gcode', 'False')
profile.putProfileSetting('gcode_extension', 'multi_extrude_tmp')