示例#1
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.multiply.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Multiply', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Multiply'
     )
     self.activateMultiply = settings.BooleanSetting().getFromValue(
         'Activate Multiply:', self, False)
     settings.LabelDisplay().getFromName('- Center -', self)
     self.centerX = settings.FloatSpin().getFromValue(
         -100.0, 'Center X (mm):', self, 100.0, 0.0)
     self.centerY = settings.FloatSpin().getFromValue(
         -100.0, 'Center Y (mm):', self, 100.0, 0.0)
     settings.LabelDisplay().getFromName('- Number of Cells -', self)
     self.numberOfColumns = settings.IntSpin().getFromValue(
         1, 'Number of Columns (integer):', self, 10, 1)
     self.numberOfRows = settings.IntSpin().getFromValue(
         1, 'Number of Rows (integer):', self, 10, 1)
     self.separationOverPerimeterWidth = settings.FloatSpin().getFromValue(
         5.0, 'Separation over Perimeter Width (ratio):', self, 25.0, 15.0)
     self.executeTitle = 'Multiply'
示例#2
0
文件: mill.py 项目: yazici/skeinforge
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.mill.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Mill', self, '')
     self.activateMill = settings.BooleanSetting().getFromValue(
         'Activate Mill', self, True)
     settings.LabelDisplay().getFromName('- Add Loops -', self)
     self.addInnerLoops = settings.BooleanSetting().getFromValue(
         'Add Inner Loops', self, True)
     self.addOuterLoops = settings.BooleanSetting().getFromValue(
         'Add Outer Loops', self, True)
     self.crossHatch = settings.BooleanSetting().getFromValue(
         'Cross Hatch', self, True)
     settings.LabelDisplay().getFromName('- Loop Outset -', self)
     self.loopInnerOutsetOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(0.3, 'Loop Inner Outset over Perimeter Width (ratio):',
                    self, 0.7, 0.5)
     self.loopOuterOutsetOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(0.8, 'Loop Outer Outset over Perimeter Width (ratio):',
                    self, 1.4, 1.0)
     self.millWidthOverPerimeterWidth = settings.FloatSpin().getFromValue(
         0.8, 'Mill Width over Perimeter Width (ratio):', self, 1.8, 1.0)
     self.executeTitle = 'Mill'
示例#3
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.stretch.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Stretch', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Stretch'
     )
     self.activateStretch = settings.BooleanSetting().getFromValue(
         'Activate Stretch', self, False)
     self.crossLimitDistanceOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(3.0,
                    'Cross Limit Distance Over Perimeter Width (ratio):',
                    self, 10.0, 5.0)
     self.loopStretchOverPerimeterWidth = settings.FloatSpin().getFromValue(
         0.05, 'Loop Stretch Over Perimeter Width (ratio):', self, 0.25,
         0.11)
     self.pathStretchOverPerimeterWidth = settings.FloatSpin().getFromValue(
         0.0, 'Path Stretch Over Perimeter Width (ratio):', self, 0.2, 0.0)
     settings.LabelDisplay().getFromName('- Perimeter -', self)
     self.perimeterInsideStretchOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(
         0.12, 'Perimeter Inside Stretch Over Perimeter Width (ratio):',
         self, 0.52, 0.32)
     self.perimeterOutsideStretchOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(
         0.05, 'Perimeter Outside Stretch Over Perimeter Width (ratio):',
         self, 0.25, 0.1)
     self.stretchFromDistanceOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(1.0,
                    'Stretch From Distance Over Perimeter Width (ratio):',
                    self, 3.0, 2.0)
     self.executeTitle = 'Stretch'
示例#4
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     #Set the default settings.
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.export_plugins.binary_16_byte.html',
         '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         [('Gcode text files', '*.gcode')],
         'Open File to be Converted to Binary 16 Byte', self, '')
     self.feedRateStepLength = settings.FloatSpin().getFromValue(
         0.0, 'Feed Rate Step Length (millimeters/second)', self, 1.0, 0.1)
     self.fileExtension = settings.StringSetting().getFromValue(
         'File Extension:', self, 'bin')
     settings.LabelDisplay().getFromName('Offset:', self)
     self.xOffset = settings.FloatSpin().getFromValue(
         -100.0, 'X Offset (millimeters)', self, 100.0, 0.0)
     self.yOffset = settings.FloatSpin().getFromValue(
         -100.0, 'Y Offset (millimeters)', self, 100.0, 0.0)
     self.zOffset = settings.FloatSpin().getFromValue(
         -10.0, 'Z Offset (millimeters)', self, 10.0, 0.0)
     settings.LabelDisplay().getFromName('Step Length:', self)
     self.xStepLength = settings.FloatSpin().getFromValue(
         0.0, 'X Step Length (millimeters)', self, 1.0, 0.1)
     self.yStepLength = settings.FloatSpin().getFromValue(
         0.0, 'Y Step Length (millimeters)', self, 1.0, 0.1)
     self.zStepLength = settings.FloatSpin().getFromValue(
         0.0, 'Z Step Length (millimeters)', self, 0.2, 0.01)
     #Create the archive, title of the execute button, title of the dialog & settings fileName.
     self.executeTitle = 'Convert to Binary 16 Byte'
示例#5
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.carve.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getTranslatorFileTypeTuples(), 'Open File for Carve',
         self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Carve'
     )
     self.bridgeThicknessMultiplier = settings.FloatSpin().getFromValue(
         0.8, 'Bridge Thickness Multiplier (ratio):', self, 1.2, 1.0)
     self.extraDecimalPlaces = settings.IntSpin().getFromValue(
         0, 'Extra Decimal Places (integer):', self, 2, 1)
     self.importCoarseness = settings.FloatSpin().getFromValue(
         0.5, 'Import Coarseness (ratio):', self, 2.0, 1.0)
     self.infillDirectionBridge = settings.BooleanSetting().getFromValue(
         'Infill in Direction of Bridges', self, True)
     self.layerThickness = settings.FloatSpin().getFromValue(
         0.1, 'Layer Thickness (mm):', self, 1.0, 0.4)
     self.layersFrom = settings.IntSpin().getFromValue(
         0, 'Layers From (index):', self, 20, 0)
     self.layersTo = settings.IntSpin().getSingleIncrementFromValue(
         0, 'Layers To (index):', self, 912345678, 912345678)
     self.meshTypeLabel = settings.LabelDisplay().getFromName(
         'Mesh Type: ', self)
     importLatentStringVar = settings.LatentStringVar()
     self.correctMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Correct Mesh', self, True)
     self.unprovenMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Unproven Mesh', self, False)
     self.perimeterWidthOverThickness = settings.FloatSpin().getFromValue(
         1.4, 'Perimeter Width over Thickness (ratio):', self, 2.2, 1.8)
     self.executeTitle = 'Carve'
示例#6
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.whittle.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Whittled', self, '' )
		self.activateWhittle = settings.BooleanSetting().getFromValue( 'Activate Whittle:', self, False )
		self.maximumVerticalStep = settings.FloatSpin().getFromValue( 0.02, 'Maximum Vertical Step (mm):', self, 0.42, 0.1 )
		self.executeTitle = 'Whittle'
示例#7
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.inset.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Inset', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Inset'
     )
     self.addCustomCodeForTemperatureReading = settings.BooleanSetting(
     ).getFromValue('Add Custom Code for Temperature Reading', self, True)
     self.bridgeWidthMultiplier = settings.FloatSpin().getFromValue(
         0.8, 'Bridge Width Multiplier (ratio):', self, 1.2, 1.0)
     self.loopOrderChoice = settings.MenuButtonDisplay().getFromName(
         'Loop Order Choice:', self)
     self.loopOrderAscendingArea = settings.MenuRadio(
     ).getFromMenuButtonDisplay(self.loopOrderChoice, 'Ascending Area',
                                self, True)
     self.loopOrderDescendingArea = settings.MenuRadio(
     ).getFromMenuButtonDisplay(self.loopOrderChoice, 'Descending Area',
                                self, False)
     self.overlapRemovalWidthOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(0.3,
                    'Overlap Removal Width over Perimeter Width (ratio):',
                    self, 0.9, 0.6)
     self.turnExtruderHeaterOffAtShutDown = settings.BooleanSetting(
     ).getFromValue('Turn Extruder Heater Off at Shut Down', self, True)
     self.executeTitle = 'Inset'
示例#8
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.cleave.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getTranslatorFileTypeTuples(), 'Open File to be Cleaved',
         self, '')
     self.extraDecimalPlaces = settings.IntSpin().getFromValue(
         0, 'Extra Decimal Places (integer):', self, 2, 1)
     self.importCoarseness = settings.FloatSpin().getFromValue(
         0.5, 'Import Coarseness (ratio):', self, 2.0, 1.0)
     self.layerThickness = settings.FloatSpin().getFromValue(
         0.1, 'Layer Thickness (mm):', self, 1.0, 0.4)
     self.layersFrom = settings.IntSpin().getFromValue(
         0, 'Layers From (index):', self, 20, 0)
     self.layersTo = settings.IntSpin().getSingleIncrementFromValue(
         0, 'Layers To (index):', self, 912345678, 912345678)
     self.meshTypeLabel = settings.LabelDisplay().getFromName(
         'Mesh Type: ',
         self,
     )
     importLatentStringVar = settings.LatentStringVar()
     self.correctMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Correct Mesh', self, True)
     self.unprovenMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Unproven Mesh', self, False)
     self.perimeterWidth = settings.FloatSpin().getFromValue(
         0.4, 'Perimeter Width (mm):', self, 4.0, 2.0)
     self.executeTitle = 'Cleave'
示例#9
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.preface.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Preface', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Preface'
     )
     self.meta = settings.StringSetting().getFromValue('Meta:', self, '')
     settings.LabelDisplay().getFromName('- Name of Alteration Files -',
                                         self)
     self.nameOfEndFile = settings.StringSetting().getFromValue(
         'Name of End File:', self, 'end.gcode')
     self.nameOfStartFile = settings.StringSetting().getFromValue(
         'Name of Start File:', self, 'start.gcode')
     self.setPositioningToAbsolute = settings.BooleanSetting().getFromValue(
         'Set Positioning to Absolute', self, True)
     self.setUnitsToMillimeters = settings.BooleanSetting().getFromValue(
         'Set Units to Millimeters', self, True)
     self.startAtHome = settings.BooleanSetting().getFromValue(
         'Start at Home', self, False)
     settings.LabelDisplay().getFromName('- Turn Extruder Off -', self)
     self.turnExtruderOffAtShutDown = settings.BooleanSetting(
     ).getFromValue('Turn Extruder Off at Shut Down', self, True)
     self.turnExtruderOffAtStartUp = settings.BooleanSetting().getFromValue(
         'Turn Extruder Off at Start Up', self, True)
     self.executeTitle = 'Preface'
示例#10
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.jitter.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Jitter', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Jitter' )
		self.activateJitter = settings.BooleanSetting().getFromValue( 'Activate Jitter', self, True )
		self.jitterOverPerimeterWidth = settings.FloatSpin().getFromValue( 1.0, 'Jitter Over Perimeter Width (ratio):', self, 3.0, 2.0 )
		self.executeTitle = 'Jitter'
示例#11
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.hop.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Hop', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Hop' )
		self.activateHop = settings.BooleanSetting().getFromValue( 'Activate Hop', self, False )
		self.hopOverLayerThickness = settings.FloatSpin().getFromValue( 0.5, 'Hop Over Layer Thickness (ratio):', self, 1.5, 1.0 )
		self.minimumHopAngle = settings.FloatSpin().getFromValue( 20.0, 'Minimum Hop Angle (degrees):', self, 60.0, 30.0 )
		self.executeTitle = 'Hop'
示例#12
0
文件: lash.py 项目: yazici/skeinforge
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		settings.addListsToRepository( 'skeinforge_tools.craft_plugins.lash.html', '', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Lash', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Lash' )
		self.activateLash = settings.BooleanSetting().getFromValue( 'Activate Lash', self, False )
		self.xBacklash = settings.FloatSpin().getFromValue( 0.1, 'X Backlash (mm):', self, 0.5, 0.2 )
		self.yBacklash = settings.FloatSpin().getFromValue( 0.1, 'Y Backlash (mm):', self, 0.5, 0.3 )
		self.executeTitle = 'Lash'
示例#13
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.outset.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Outset', self, '')
     self.activateOutset = settings.BooleanSetting().getFromValue(
         'Activate Outset:', self, True)
     self.executeTitle = 'Outset'
示例#14
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.dimension.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Dimension', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Dimension' )
		self.activateDimension = settings.BooleanSetting().getFromValue( 'Activate Dimension', self, False )
		extrusionDistanceFormatLatentStringVar = settings.LatentStringVar()
		self.extrusionDistanceFormatChoiceLabel = settings.LabelDisplay().getFromName( 'Extrusion Distance Format Choice: ', self )
		settings.Radio().getFromRadio( extrusionDistanceFormatLatentStringVar, 'Absolute Extrusion Distance', self, False )
		self.relativeExtrusionDistance = settings.Radio().getFromRadio( extrusionDistanceFormatLatentStringVar, 'Relative Extrusion Distance', self, True )
		self.executeTitle = 'Dimension'
示例#15
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.coil.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Coil', self, '')
     self.activateCoil = settings.BooleanSetting().getFromValue(
         'Activate Coil', self, True)
     self.minimumToolDistance = settings.FloatSpin().getFromValue(
         10.0, 'Minimum Tool Distance (millimeters):', self, 50.0, 20.0)
     self.executeTitle = 'Coil'
示例#16
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository('skeinforge_tools.analyze.html', '',
                                   self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         [('Gcode text files', '*.gcode')], 'Open File for Analyze', self,
         '')
     importantFileNames = ['skeinview', 'behold', 'statistic']
     settings.getRadioPluginsAddPluginFrame(getPluginsDirectoryPath(),
                                            importantFileNames,
                                            getPluginFileNames(), self)
     self.executeTitle = 'Analyze'
示例#17
0
文件: flow.py 项目: yazici/skeinforge
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.flow.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Flow', self, '')
     self.activateFlow = settings.BooleanSetting().getFromValue(
         'Activate Flow:', self, True)
     self.flowRate = settings.FloatSpin().getFromValue(
         50.0, 'Flow Rate (arbitrary units):', self, 250.0, 210.0)
     self.executeTitle = 'Flow'
示例#18
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.widen.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Widen', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Widen'
     )
     self.activateWiden = settings.BooleanSetting().getFromValue(
         'Activate Widen:', self, True)
     self.executeTitle = 'Widen'
示例#19
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.export.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Export', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export'
     )
     self.activateExport = settings.BooleanSetting().getFromValue(
         'Activate Export', self, True)
     self.alsoSendOutputTo = settings.StringSetting().getFromValue(
         'Also Send Output To:', self, '')
     self.deleteComments = settings.BooleanSetting().getFromValue(
         'Delete Comments', self, True)
     exportPluginsFolderPath = gcodec.getAbsoluteFolderPath(
         __file__, 'export_plugins')
     exportStaticDirectoryPath = os.path.join(exportPluginsFolderPath,
                                              'static_plugins')
     exportPluginFileNames = gcodec.getPluginFileNamesFromDirectoryPath(
         exportPluginsFolderPath)
     exportStaticPluginFileNames = gcodec.getPluginFileNamesFromDirectoryPath(
         exportStaticDirectoryPath)
     self.exportLabel = settings.LabelDisplay().getFromName(
         'Export Operations: ', self)
     self.exportPlugins = []
     exportLatentStringVar = settings.LatentStringVar()
     self.doNotChangeOutput = settings.RadioCapitalized().getFromRadio(
         exportLatentStringVar, 'Do Not Change Output', self, True)
     self.doNotChangeOutput.directoryPath = None
     allExportPluginFileNames = exportPluginFileNames + exportStaticPluginFileNames
     for exportPluginFileName in allExportPluginFileNames:
         exportPlugin = None
         if exportPluginFileName in exportPluginFileNames:
             path = os.path.join(exportPluginsFolderPath,
                                 exportPluginFileName)
             exportPlugin = settings.RadioCapitalizedButton().getFromPath(
                 exportLatentStringVar, exportPluginFileName, path, self,
                 False)
             exportPlugin.directoryPath = exportPluginsFolderPath
         else:
             exportPlugin = settings.RadioCapitalized().getFromRadio(
                 exportLatentStringVar, exportPluginFileName, self, False)
             exportPlugin.directoryPath = exportStaticDirectoryPath
         self.exportPlugins.append(exportPlugin)
     self.fileExtension = settings.StringSetting().getFromValue(
         'File Extension:', self, 'gcode')
     self.savePenultimateGcode = settings.BooleanSetting().getFromValue(
         'Save Penultimate Gcode', self, False)
     self.executeTitle = 'Export'
示例#20
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.analyze_plugins.comment.html', '', self)
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Comment'
     )
     self.activateComment = settings.BooleanSetting().getFromValue(
         'Activate Comment', self, False)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         [('Gcode text files', '*.gcode')],
         'Open File to Write Comments for', self, '')
     #Create the archive, title of the execute button, title of the dialog & settings fileName.
     self.executeTitle = 'Write Comments'
示例#21
0
文件: lift.py 项目: yazici/skeinforge
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.lift.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Lifted', self, '')
     self.activateLift = settings.BooleanSetting().getFromValue(
         'Activate Lift:', self, True)
     self.cuttingLiftOverLayerStep = settings.FloatSpin().getFromValue(
         -1.0, 'Cutting Lift over Layer Step (ratio):', self, 1.0, -0.5)
     self.clearanceAboveTop = settings.FloatSpin().getFromValue(
         0.0, 'Clearance above Top (mm):', self, 10.0, 5.0)
     self.executeTitle = 'Lift'
示例#22
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.drill.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Drill', self, '')
     self.activateDrill = settings.BooleanSetting().getFromValue(
         'Activate Drill', self, True)
     self.drillingMarginOnBottom = settings.FloatSpin().getFromValue(
         0.0, 'Drilling Margin on Bottom (millimeters):', self, 5.0, 1.0)
     self.drillingMarginOnTop = settings.FloatSpin().getFromValue(
         0.0, 'Drilling Margin on Top (millimeters):', self, 20.0, 3.0)
     self.executeTitle = 'Drill'
示例#23
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.home.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Home', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_home'
     )
     self.activateHome = settings.BooleanSetting().getFromValue(
         'Activate Home', self, True)
     self.nameOfHomingFile = settings.StringSetting().getFromValue(
         'Name of Homing File:', self, 'homing.gcode')
     self.executeTitle = 'Home'
示例#24
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.oozebane.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Oozebane', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Oozebane' )
		self.activateOozebane = settings.BooleanSetting().getFromValue( 'Activate Oozebane', self, False )
		self.afterStartupDistance = settings.FloatSpin().getFromValue( 0.7, 'After Startup Distance (millimeters):', self, 1.7, 1.2 )
		self.earlyShutdownDistance = settings.FloatSpin().getFromValue( 0.7, 'Early Shutdown Distance (millimeters):', self, 1.7, 1.2 )
		self.earlyStartupDistanceConstant = settings.FloatSpin().getFromValue( 10.0, 'Early Startup Distance Constant (millimeters):', self, 30.0, 20.0 )
		self.earlyStartupMaximumDistance = settings.FloatSpin().getFromValue( 0.7, 'Early Startup Maximum Distance (millimeters):', self, 1.7, 1.2 )
		self.firstEarlyStartupDistance = settings.FloatSpin().getFromValue( 5.0, 'First Early Startup Distance (millimeters):', self, 45.0, 25.0 )
		self.minimumDistanceForEarlyStartup = settings.FloatSpin().getFromValue( 0.0, 'Minimum Distance for Early Startup (millimeters):', self, 10.0, 0.0 )
		self.minimumDistanceForEarlyShutdown = settings.FloatSpin().getFromValue( 0.0, 'Minimum Distance for Early Shutdown (millimeters):', self, 10.0, 0.0 )
		self.slowdownStartupSteps = settings.IntSpin().getFromValue( 2, 'Slowdown Startup Steps (positive integer):', self, 5, 3 )
		self.executeTitle = 'Oozebane'
示例#25
0
文件: cool.py 项目: yazici/skeinforge
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.cool.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Cool', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Cool' )
		self.activateCool = settings.BooleanSetting().getFromValue( 'Activate Cool', self, True )
		self.coolType = settings.MenuButtonDisplay().getFromName( 'Cool Type:', self )
		self.orbit = settings.MenuRadio().getFromMenuButtonDisplay( self.coolType, 'Orbit', self, False )
		self.slowDown = settings.MenuRadio().getFromMenuButtonDisplay( self.coolType, 'Slow Down', self, True )
		self.maximumCool = settings.FloatSpin().getFromValue( 0.0, 'Maximum Cool (Celcius):', self, 10.0, 2.0 )
		self.minimumLayerTime = settings.FloatSpin().getFromValue( 0.0, 'Minimum Layer Time (seconds):', self, 120.0, 60.0 )
		self.minimumOrbitalRadius = settings.FloatSpin().getFromValue( 0.0, 'Minimum Orbital Radius (millimeters):', self, 20.0, 10.0 )
		self.turnFanOnAtBeginning = settings.BooleanSetting().getFromValue( 'Turn Fan On at Beginning', self, True )
		self.turnFanOffAtEnding = settings.BooleanSetting().getFromValue( 'Turn Fan Off at Ending', self, True )
		self.executeTitle = 'Cool'
示例#26
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.splodge.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Splodge', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Splodge' )
		self.activateSplodge = settings.BooleanSetting().getFromValue( 'Activate Splodge', self, False )
		settings.LabelDisplay().getFromName( '- Initial -', self )
		self.initialLiftOverExtraThickness = settings.FloatSpin().getFromValue( 0.5, 'Initial Lift over Extra Thickness (ratio):', self, 1.5, 1.0 )
		self.initialSplodgeFeedRate = settings.FloatSpin().getFromValue( 0.4, 'Initial Splodge Feed Rate (mm/s):', self, 2.4, 1.0 )
		self.initialSplodgeQuantityLength = settings.FloatSpin().getFromValue( 10.0, 'Initial Splodge Quantity Length (millimeters):', self, 90.0, 30.0 )
		settings.LabelDisplay().getFromName( '- Operating -', self )
		self.operatingLiftOverExtraThickness = settings.FloatSpin().getFromValue( 0.5, 'Operating Lift over Extra Thickness (ratio):', self, 1.5, 1.0 )
		self.operatingSplodgeFeedRate = settings.FloatSpin().getFromValue( 0.4, 'Operating Splodge Feed Rate (mm/s):', self, 2.4, 1.0 )
		self.operatingSplodgeQuantityLength = settings.FloatSpin().getFromValue( 0.4, 'Operating Splodge Quantity Length (millimeters):', self, 2.4, 1.0 )
		self.executeTitle = 'Splodge'
示例#27
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository('skeinforge_tools.craft.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Craft', self, '')
     self.importantFileNames = [
         'carve', 'chop', 'feed', 'flow', 'lift', 'raft', 'speed'
     ]
     allCraftNames = gcodec.getPluginFileNamesFromDirectoryPath(
         getPluginsDirectoryPath())
     radioPlugins = settings.getRadioPluginsAddPluginFrame(
         getPluginsDirectoryPath(), self.importantFileNames, allCraftNames,
         self)
     CraftRadioButtonsSaveListener().getFromRadioPlugins(radioPlugins, self)
     self.executeTitle = 'Craft'
示例#28
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.unpause.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Unpause', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Unpause'
     )
     self.activateUnpause = settings.BooleanSetting().getFromValue(
         'Activate Unpause', self, False)
     self.delay = settings.FloatSpin().getFromValue(
         2.0, 'Delay (milliseconds):', self, 42.0, 28.0)
     self.maximumSpeed = settings.FloatSpin().getFromValue(
         1.1, 'Maximum Speed (ratio):', self, 1.9, 1.5)
     self.executeTitle = 'Unpause'
示例#29
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.chamber.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Chamber', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Chamber'
     )
     self.activateChamber = settings.BooleanSetting().getFromValue(
         'Activate Chamber:', self, True)
     self.bedTemperature = settings.FloatSpin().getFromValue(
         20.0, 'Bed Temperature (Celcius):', self, 90.0, 60.0)
     self.chamberTemperature = settings.FloatSpin().getFromValue(
         20.0, 'Chamber Temperature (Celcius):', self, 90.0, 30.0)
     self.executeTitle = 'Chamber'
示例#30
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.clip.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Clip', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Clip'
     )
     self.activateClip = settings.BooleanSetting().getFromValue(
         'Activate Clip', self, True)
     self.clipOverExtrusionWidth = settings.FloatSpin().getFromValue(
         0.1, 'Clip Over Extrusion Width (ratio):', self, 0.8, 0.5)
     self.connectLoops = settings.BooleanSetting().getFromValue(
         'Connect Loops', self, True)
     self.executeTitle = 'Clip'