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

All Samples(102)  |  Call(102)  |  Derive(0)  |  Import(0)

src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/fillet.py   SkeinFox(Download)
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being filleted into arc points.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being filleted into arc radiuses.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being arc segmented.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being beveled.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	preferences.readPreferences( filletPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain filleted.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_fillet.gcode'
	filletGcode = getFilletChainGcode( fileName, '', filletPreferences )

src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/fillet.py   SkeinFox(Download)
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being filleted into arc points.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being filleted into arc radiuses.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being arc segmented.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	filletPreferences = FilletPreferences()
	preferences.readPreferences( filletPreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being beveled.' )
	gcodeText = gcodec.getFileText( fileName )
	if gcodeText == '':
	preferences.readPreferences( filletPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain filleted.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_fillet.gcode'
	filletGcode = getFilletChainGcode( fileName, '', filletPreferences )

src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/analyze_plugins/statistic.py   SkeinFox(Download)
def writeStatisticFileGivenText( fileName, gcodeText, statisticPreferences ):
	"Write statistics for a gcode file."
	print( 'Statistics are being generated for the file ' + gcodec.getSummarizedFilename( fileName ) )
	statisticGcode = getStatisticGcode( gcodeText )
	if statisticPreferences.printStatistics.value:

src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/analyze_plugins/statistic.py   SkeinFox(Download)
def writeStatisticFileGivenText( fileName, gcodeText, statisticPreferences ):
	"Write statistics for a gcode file."
	print( 'Statistics are being generated for the file ' + gcodec.getSummarizedFilename( fileName ) )
	statisticGcode = getStatisticGcode( gcodeText )
	if statisticPreferences.printStatistics.value:

src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/stretch.py   SkeinFox(Download)
	preferences.readPreferences( stretchPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain stretched.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_stretch.gcode'
	stretchGcode = getStretchChainGcode( fileName, '', stretchPreferences )
	if stretchGcode == '':
		return
	gcodec.writeFileText( suffixFilename, stretchGcode )
	print( 'The stretched file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )

src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/stretch.py   SkeinFox(Download)
	preferences.readPreferences( stretchPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain stretched.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_stretch.gcode'
	stretchGcode = getStretchChainGcode( fileName, '', stretchPreferences )
	if stretchGcode == '':
		return
	gcodec.writeFileText( suffixFilename, stretchGcode )
	print( 'The stretched file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )

src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/carve.py   SkeinFox(Download)
	carvePreferences = CarvePreferences()
	preferences.readPreferences( carvePreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being carved.' )
	carveGcode = getCarveGcode( fileName, carvePreferences )
	if carveGcode == '':
		return
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_carve.svg'
	suffixFilename = suffixFilename.replace( ' ', '_' )
	gcodec.writeFileText( suffixFilename, carveGcode )
	print( 'The carved file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )
		svgTemplateText = getReplacedWordAndInQuotes( 'minZ', self.getRounded( self.cornerMinimum.z ), svgTemplateText )
		svgTemplateText = getReplacedWordAndInQuotes( 'dimZ', self.getRounded( self.extent.z ), svgTemplateText )
		summarizedFilename = gcodec.getSummarizedFilename( fileName ) + ' SVG Slice File'
		svgTemplateText = getReplacedWordAndInQuotes( 'Title', summarizedFilename, svgTemplateText )
		noJavascriptControlsTagString = '<g id="noJavascriptControls" fill="#000" transform="translate(%s, %s)">' % ( self.getRounded( self.margin ), self.getRounded( controlTop ) )

src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/carve.py   SkeinFox(Download)
	carvePreferences = CarvePreferences()
	preferences.readPreferences( carvePreferences )
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being carved.' )
	carveGcode = getCarveGcode( fileName, carvePreferences )
	if carveGcode == '':
		return
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_carve.svg'
	suffixFilename = suffixFilename.replace( ' ', '_' )
	gcodec.writeFileText( suffixFilename, carveGcode )
	print( 'The carved file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )
		svgTemplateText = getReplacedWordAndInQuotes( 'minZ', self.getRounded( self.cornerMinimum.z ), svgTemplateText )
		svgTemplateText = getReplacedWordAndInQuotes( 'dimZ', self.getRounded( self.extent.z ), svgTemplateText )
		summarizedFilename = gcodec.getSummarizedFilename( fileName ) + ' SVG Slice File'
		svgTemplateText = getReplacedWordAndInQuotes( 'Title', summarizedFilename, svgTemplateText )
		noJavascriptControlsTagString = '<g id="noJavascriptControls" fill="#000" transform="translate(%s, %s)">' % ( self.getRounded( self.margin ), self.getRounded( controlTop ) )

src/s/k/SkeinFox-HEAD/skeinforge-0006/skeinforge_tools/export.py   SkeinFox(Download)
	preferences.readPreferences( exportPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain exported.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_export.' + exportPreferences.fileExtension.value
	gcodeText = gcodec.getGcodeFileText( fileName, '' )
		replacableExportChainGcode = getReplaced( replacableExportChainGcode )
		gcodec.writeFileText( suffixFilename, replacableExportChainGcode )
		print( 'The exported file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )
	if exportPreferences.alsoSendOutputTo.value != '':
		if replacableExportChainGcode == None:

src/s/k/SkeinFox-HEAD/skeinforge-0005/skeinforge_tools/export.py   SkeinFox(Download)
	preferences.readPreferences( exportPreferences )
	startTime = time.time()
	print( 'File ' + gcodec.getSummarizedFilename( fileName ) + ' is being chain exported.' )
	suffixFilename = fileName[ : fileName.rfind( '.' ) ] + '_export.' + exportPreferences.fileExtension.value
	gcodeText = gcodec.getGcodeFileText( fileName, '' )
		replacableExportChainGcode = getReplaced( replacableExportChainGcode )
		gcodec.writeFileText( suffixFilename, replacableExportChainGcode )
		print( 'The exported file is saved as ' + gcodec.getSummarizedFilename( suffixFilename ) )
	if exportPreferences.alsoSendOutputTo.value != '':
		if replacableExportChainGcode == None:

  1 | 2 | 3 | 4 | 5  Next