Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Display a skeinlayered gcode file for a skeinforge gcode file, if 'Activate Skeinlayer' is selected.

        def writeOutput(fileName, fileNamePenultimate, fileNameSuffix, filePenultimateWritten, gcodeText=''):
	"Display a skeinlayered gcode file for a skeinforge gcode file, if 'Activate Skeinlayer' is selected."
	try:
		import Tkinter
	except:
		print('Warning, skeinlayer will do nothing because Tkinter is not installed.')
		return
	repository = settings.getReadRepository( SkeinlayerRepository() )
	if repository.activateSkeinlayer.value:
		gcodeText = archive.getTextIfEmpty( fileNameSuffix, gcodeText )
		return getWindowAnalyzeFileGivenText( fileNameSuffix, gcodeText, repository )
        


src/s/f/SFACT-HEAD/sfact.py   SFACT(Download)
#				skeinlayer.writeOutput('', '', fileNamePenultimate,)
				fileNameSkeinLayer = fileName[: fileName.rfind('.')] + '_penultimate.gcode'
				skeinlayer.writeOutput('', '', fileNameSkeinLayer, '')
#	fileNamePenultimate = fileName[: fileName.rfind('.')] + '_penultimate.gcode'
		else: