Exemplo n.º 1
0
def main():
    "Display the skeiniso dialog."
    if len(sys.argv) > 1:
        tableau.startMainLoopFromWindow(
            getWindowAnalyzeFile(' '.join(sys.argv[1:])))
    else:
        settings.startMainLoopFromConstructor(getNewRepository())
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
def main():
	"Display the skeinview dialog."
	if len( sys.argv ) > 1:
		tableau.startMainLoopFromWindow( getWindowAnalyzeFile(' '.join( sys.argv[1 :] ) ) )
	else:
		settings.startMainLoopFromConstructor( SkeinviewRepository() )