Example #1
0
def main():
    "Display the skeiniso dialog."
    if len(sys.argv) > 1:
        tableau.startMainLoopFromWindow(
            getWindowAnalyzeFile(' '.join(sys.argv[1:])))
    else:
        settings.startMainLoopFromConstructor(getNewRepository())
Example #2
0
def writeOutput( fileName, fileNameSuffix, gcodeText = ''):
	"Display a skeinlayered gcode file for a skeinforge gcode file, if 'Activate Skeinlayer' is selected."
	repository = settings.getReadRepository( SkeinlayerRepository() )
	if repository.activateSkeinlayer.value:
		gcodeText = archive.getTextIfEmpty( fileNameSuffix, gcodeText )
		window = getWindowAnalyzeFileGivenText( fileNameSuffix, gcodeText, repository )
		tableau.startMainLoopFromWindow(window)
Example #3
0
def writeOutput(fileName, fileNameSuffix, gcodeText=''):
    "Display a skeinlayered gcode file for a skeinforge gcode file, if 'Activate Skeinlayer' is selected."
    repository = settings.getReadRepository(SkeinlayerRepository())
    if repository.activateSkeinlayer.value:
        gcodeText = archive.getTextIfEmpty(fileNameSuffix, gcodeText)
        window = getWindowAnalyzeFileGivenText(fileNameSuffix, gcodeText,
                                               repository)
        tableau.startMainLoopFromWindow(window)
Example #4
0
def main():
	"Display the skeinview dialog."
	if len( sys.argv ) > 1:
		tableau.startMainLoopFromWindow( getWindowAnalyzeFile(' '.join( sys.argv[1 :] ) ) )
	else:
		settings.startMainLoopFromConstructor( SkeinviewRepository() )