本文整理汇总了Python中skeinforge_tools.skeinforge_utilities.preferences.setHelpPreferencesFileNameTitleWindowPosition函数的典型用法代码示例。如果您正苦于以下问题:Python setHelpPreferencesFileNameTitleWindowPosition函数的具体用法?Python setHelpPreferencesFileNameTitleWindowPosition怎么用?Python setHelpPreferencesFileNameTitleWindowPosition使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setHelpPreferencesFileNameTitleWindowPosition函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.fileExtension = preferences.StringPreference().getFromValue( 'File Extension:', 'bin' )
self.archive.append( self.fileExtension )
self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to be Converted to Binary 16 Byte', '' )
self.archive.append( self.fileNameInput )
self.feedRateStepLength = preferences.FloatPreference().getFromValue( 'FeedRate Step Length (millimeters/second)', 0.1 )
self.archive.append( self.feedRateStepLength )
self.xStepLength = preferences.FloatPreference().getFromValue( 'X Step Length (millimeters)', 0.1 )
self.archive.append( self.xStepLength )
self.yStepLength = preferences.FloatPreference().getFromValue( 'Y Step Length (millimeters)', 0.1 )
self.archive.append( self.yStepLength )
self.zStepLength = preferences.FloatPreference().getFromValue( 'Z Step Length (millimeters)', 0.01 )
self.archive.append( self.zStepLength )
self.xOffset = preferences.FloatPreference().getFromValue( 'X Offset (millimeters)', 0.0 )
self.archive.append( self.xOffset )
self.yOffset = preferences.FloatPreference().getFromValue( 'Y Offset (millimeters)', 0.0 )
self.archive.append( self.yOffset )
self.zOffset = preferences.FloatPreference().getFromValue( 'Z Offset (millimeters)', 0.0 )
self.archive.append( self.zOffset )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Convert to Binary 16 Byte'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.export_plugins.binary_16_byte.html' )
示例2: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Prefaced', '' )
self.archive.append( self.fileNameInput )
extrusionDistanceFormatRadio = []
self.extrusionDistanceFormatChoiceLabel = preferences.LabelDisplay().getFromName( 'Extrusion Distance Format Choice: ' )
self.archive.append( self.extrusionDistanceFormatChoiceLabel )
self.extrusionDistanceDoNotAddPreference = preferences.Radio().getFromRadio( 'Do Not Add Extrusion Distance', extrusionDistanceFormatRadio, True )
self.archive.append( self.extrusionDistanceDoNotAddPreference )
self.extrusionDistanceAbsolutePreference = preferences.Radio().getFromRadio( 'Extrusion Distance Absolute', extrusionDistanceFormatRadio, False )
self.archive.append( self.extrusionDistanceAbsolutePreference )
self.extrusionDistanceRelativePreference = preferences.Radio().getFromRadio( 'Extrusion Distance Relative', extrusionDistanceFormatRadio, False )
self.archive.append( self.extrusionDistanceRelativePreference )
self.nameOfEndFile = preferences.StringPreference().getFromValue( 'Name of End File:', 'end.gcode' )
self.archive.append( self.nameOfEndFile )
self.nameOfStartFile = preferences.StringPreference().getFromValue( 'Name of Start File:', 'start.gcode' )
self.archive.append( self.nameOfStartFile )
self.setPositioningToAbsolute = preferences.BooleanPreference().getFromValue( 'Set Positioning to Absolute', True )
self.archive.append( self.setPositioningToAbsolute )
self.setUnitsToMillimeters = preferences.BooleanPreference().getFromValue( 'Set Units to Millimeters', True )
self.archive.append( self.setUnitsToMillimeters )
self.startAtHome = preferences.BooleanPreference().getFromValue( 'Start at Home', False )
self.archive.append( self.startAtHome )
self.turnExtruderOffAtShutDown = preferences.BooleanPreference().getFromValue( 'Turn Extruder Off at Shut Down', True )
self.archive.append( self.turnExtruderOffAtShutDown )
self.turnExtruderOffAtStartUp = preferences.BooleanPreference().getFromValue( 'Turn Extruder Off at Start Up', True )
self.archive.append( self.turnExtruderOffAtStartUp )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Preface'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.preface.html' )
示例3: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.activateFillet = preferences.BooleanPreference().getFromValue( 'Activate Fillet', True )
self.archive.append( self.activateFillet )
self.filletProcedureChoiceLabel = preferences.LabelDisplay().getFromName( 'Fillet Procedure Choice: ' )
self.archive.append( self.filletProcedureChoiceLabel )
filletRadio = []
self.arcPoint = preferences.Radio().getFromRadio( 'Arc Point', filletRadio, False )
self.archive.append( self.arcPoint )
self.arcRadius = preferences.Radio().getFromRadio( 'Arc Radius', filletRadio, False )
self.archive.append( self.arcRadius )
self.arcSegment = preferences.Radio().getFromRadio( 'Arc Segment', filletRadio, False )
self.archive.append( self.arcSegment )
self.bevel = preferences.Radio().getFromRadio( 'Bevel', filletRadio, True )
self.archive.append( self.bevel )
self.cornerFeedrateOverOperatingFeedrate = preferences.FloatPreference().getFromValue( 'Corner Feedrate over Operating Feedrate (ratio):', 1.0 )
self.archive.append( self.cornerFeedrateOverOperatingFeedrate )
self.filletRadiusOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Fillet Radius over Extrusion Width (ratio):', 0.35 )
self.archive.append( self.filletRadiusOverExtrusionWidth )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Filleted', '' )
self.archive.append( self.fileNameInput )
self.reversalSlowdownDistanceOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Reversal Slowdown Distance over Extrusion Width (ratio):', 0.5 )
self.archive.append( self.reversalSlowdownDistanceOverExtrusionWidth )
self.useIntermediateFeedrateInCorners = preferences.BooleanPreference().getFromValue( 'Use Intermediate Feedrate in Corners', True )
self.archive.append( self.useIntermediateFeedrateInCorners )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Fillet'
self.saveTitle = 'Save Preferences'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.fillet.html' )
示例4: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.activateWipe = preferences.BooleanPreference().getFromValue( 'Activate Wipe', False )
self.archive.append( self.activateWipe )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Wiped', '' )
self.archive.append( self.fileNameInput )
self.locationArrivalX = preferences.FloatPreference().getFromValue( 'Location Arrival X (mm):', - 70.0 )
self.archive.append( self.locationArrivalX )
self.locationArrivalY = preferences.FloatPreference().getFromValue( 'Location Arrival Y (mm):', - 50.0 )
self.archive.append( self.locationArrivalY )
self.locationArrivalZ = preferences.FloatPreference().getFromValue( 'Location Arrival Z (mm):', 50.0 )
self.archive.append( self.locationArrivalZ )
self.locationDepartureX = preferences.FloatPreference().getFromValue( 'Location Departure X (mm):', - 70.0 )
self.archive.append( self.locationDepartureX )
self.locationDepartureY = preferences.FloatPreference().getFromValue( 'Location Departure Y (mm):', - 40.0 )
self.archive.append( self.locationDepartureY )
self.locationDepartureZ = preferences.FloatPreference().getFromValue( 'Location Departure Z (mm):', 50.0 )
self.archive.append( self.locationDepartureZ )
self.locationWipeX = preferences.FloatPreference().getFromValue( 'Location Wipe X (mm):', - 70.0 )
self.archive.append( self.locationWipeX )
self.locationWipeY = preferences.FloatPreference().getFromValue( 'Location Wipe Y (mm):', - 70.0 )
self.archive.append( self.locationWipeY )
self.locationWipeZ = preferences.FloatPreference().getFromValue( 'Location Wipe Z (mm):', 50.0 )
self.archive.append( self.locationWipeZ )
self.wipePeriod = preferences.IntPreference().getFromValue( 'Wipe Period (layers):', 3 )
self.archive.append( self.wipePeriod )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Wipe'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.wipe.html' )
示例5: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.activateOozebane = preferences.BooleanPreference().getFromValue( 'Activate Oozebane', False )
self.archive.append( self.activateOozebane )
self.afterStartupDistance = preferences.FloatPreference().getFromValue( 'After Startup Distance (millimeters):', 1.2 )
self.archive.append( self.afterStartupDistance )
self.earlyShutdownDistance = preferences.FloatPreference().getFromValue( 'Early Shutdown Distance (millimeters):', 1.2 )
self.archive.append( self.earlyShutdownDistance )
self.earlyStartupDistanceConstant = preferences.FloatPreference().getFromValue( 'Early Startup Distance Constant (millimeters):', 20.0 )
self.archive.append( self.earlyStartupDistanceConstant )
self.earlyStartupMaximumDistance = preferences.FloatPreference().getFromValue( 'Early Startup Maximum Distance (millimeters):', 1.2 )
self.archive.append( self.earlyStartupMaximumDistance )
self.firstEarlyStartupDistance = preferences.FloatPreference().getFromValue( 'First Early Startup Distance (millimeters):', 25.0 )
self.archive.append( self.firstEarlyStartupDistance )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Oozebaned', '' )
self.archive.append( self.fileNameInput )
self.minimumDistanceForEarlyStartup = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Startup (millimeters):', 0.0 )
self.archive.append( self.minimumDistanceForEarlyStartup )
self.minimumDistanceForEarlyShutdown = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Shutdown (millimeters):', 0.0 )
self.archive.append( self.minimumDistanceForEarlyShutdown )
self.slowdownStartupSteps = preferences.IntPreference().getFromValue( 'Slowdown Startup Steps (positive integer):', 3 )
self.archive.append( self.slowdownStartupSteps )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Oozebane'
self.saveTitle = 'Save Preferences'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.oozebane.html' )
示例6: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
preferences.addListsToRepository( self )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Exported', self, '' )
self.activateExport = preferences.BooleanPreference().getFromValue( 'Activate Export', self, True )
self.alsoSendOutputTo = preferences.StringPreference().getFromValue( 'Also Send Output To:', self, '' )
self.deleteComments = preferences.BooleanPreference().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 = preferences.LabelDisplay().getFromName( 'Export Operations: ', self )
self.exportPlugins = []
exportRadio = []
self.doNotChangeOutput = preferences.RadioCapitalized().getFromRadio( 'Do Not Change Output', exportRadio, 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 = preferences.RadioCapitalizedButton().getFromPath( exportPluginFilename, path, exportRadio, self, False )
exportPlugin.directoryPath = exportPluginsFolderPath
else:
exportPlugin = preferences.RadioCapitalized().getFromRadio( exportPluginFilename, exportRadio, self, False )
exportPlugin.directoryPath = exportStaticDirectoryPath
self.exportPlugins.append( exportPlugin )
self.fileExtension = preferences.StringPreference().getFromValue( 'File Extension:', self, 'gcode' )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Export'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.export.html' )
示例7: __init__
def __init__(self):
"Set the default preferences, execute title & preferences fileName."
# Set the default preferences.
preferences.addListsToRepository(self)
self.addFeedRateEvenWhenUnchanging = preferences.BooleanPreference().getFromValue(
"Add FeedRate Even When Unchanging", self, True
)
self.addSpaceBetweenWords = preferences.BooleanPreference().getFromValue("Add Space Between Words", self, True)
self.addZEvenWhenUnchanging = preferences.BooleanPreference().getFromValue(
"Add Z Even When Unchanging", self, True
)
self.fileNameInput = preferences.Filename().getFromFilename(
[("Gcode text files", "*.gcode")], "Open File to be Converted to Gcode Step", self, ""
)
self.feedRateStepLength = preferences.FloatPreference().getFromValue(
"FeedRate Step Length (millimeters/second)", self, 0.1
)
self.radiusStepLength = preferences.FloatPreference().getFromValue(
"Radius Step Length (millimeters)", self, 0.1
)
self.xStepLength = preferences.FloatPreference().getFromValue("X Step Length (millimeters)", self, 0.1)
self.yStepLength = preferences.FloatPreference().getFromValue("Y Step Length (millimeters)", self, 0.1)
self.zStepLength = preferences.FloatPreference().getFromValue("Z Step Length (millimeters)", self, 0.01)
self.xOffset = preferences.FloatPreference().getFromValue("X Offset (millimeters)", self, 0.0)
self.yOffset = preferences.FloatPreference().getFromValue("Y Offset (millimeters)", self, 0.0)
self.zOffset = preferences.FloatPreference().getFromValue("Z Offset (millimeters)", self, 0.0)
# Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = "Convert to Gcode Step"
preferences.setHelpPreferencesFileNameTitleWindowPosition(
self, "skeinforge_tools.craft_plugins.export_plugins.gcode_step.html"
)
示例8: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.addCustomCodeForTemperatureReading = preferences.BooleanPreference().getFromValue( 'Add Custom Code for Temperature Reading', True )
self.archive.append( self.addCustomCodeForTemperatureReading )
self.extrusionWidthOverThickness = preferences.FloatPreference().getFromValue( 'Extrusion Width over Thickness (ratio):', 1.5 )
self.archive.append( self.extrusionWidthOverThickness )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Insetted', '' )
self.archive.append( self.fileNameInput )
self.infillBridgeWidthOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Infill Bridge Width over Extrusion Width (ratio):', 1.0 )
self.archive.append( self.infillBridgeWidthOverExtrusionWidth )
self.infillPerimeterOverlap = preferences.FloatPreference().getFromValue( 'Infill Perimeter Overlap (ratio):', 0.15 )
self.archive.append( self.infillPerimeterOverlap )
self.infillPerimeterOverlapMethodOfCalculationLabel = preferences.LabelDisplay().getFromName( 'Infill Perimeter Overlap Method of Calculation: ' )
self.archive.append( self.infillPerimeterOverlapMethodOfCalculationLabel )
infillRadio = []
self.perimeterInfillPreference = preferences.Radio().getFromRadio( 'Calculate Overlap from Perimeter and Infill', infillRadio, True )
self.archive.append( self.perimeterInfillPreference )
self.perimeterPreference = preferences.Radio().getFromRadio( 'Calculate Overlap from Perimeter Only', infillRadio, False )
self.archive.append( self.perimeterPreference )
self.removeExtrusionOverlap = preferences.BooleanPreference().getFromValue( 'Remove Extrusion Overlap', True )
self.archive.append( self.removeExtrusionOverlap )
self.turnExtruderHeaterOffAtShutDown = preferences.BooleanPreference().getFromValue( 'Turn Extruder Heater Off at Shut Down', True )
self.archive.append( self.turnExtruderHeaterOffAtShutDown )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Inset'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.inset.html' )
示例9: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.addExtraTopLayerIfNecessary = preferences.BooleanPreference().getFromValue( 'Add Extra Top Layer if Necessary', True )
self.archive.append( self.addExtraTopLayerIfNecessary )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getTranslatorFileTypeTuples(), 'Open File to be Chopped', '' )
self.archive.append( self.fileNameInput )
self.extraDecimalPlaces = preferences.IntPreference().getFromValue( 'Extra Decimal Places (integer):', 1 )
self.archive.append( self.extraDecimalPlaces )
self.importCoarseness = preferences.FloatPreference().getFromValue( 'Import Coarseness (ratio):', 1.0 )
self.archive.append( self.importCoarseness )
self.meshTypeLabel = preferences.LabelDisplay().getFromName( 'Mesh Type: ' )
self.archive.append( self.meshTypeLabel )
importRadio = []
self.correctMesh = preferences.Radio().getFromRadio( 'Correct Mesh', importRadio, True )
self.archive.append( self.correctMesh )
self.unprovenMesh = preferences.Radio().getFromRadio( 'Unproven Mesh', importRadio, False )
self.archive.append( self.unprovenMesh )
self.layerThickness = preferences.FloatPreference().getFromValue( 'Layer Thickness (mm):', 0.4 )
self.archive.append( self.layerThickness )
self.layersFrom = preferences.IntPreference().getFromValue( 'Layers From (index):', 0 )
self.archive.append( self.layersFrom )
self.layersTo = preferences.IntPreference().getFromValue( 'Layers To (index):', 999999999 )
self.archive.append( self.layersTo )
self.perimeterWidth = preferences.FloatPreference().getFromValue( 'Perimeter Width (mm):', 0.6 )
self.archive.append( self.perimeterWidth )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Chop'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.chop.html' )
示例10: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.phoenixPreferenceTable = {}
self.updatePreferences = []
self.activateSkeinview = preferences.BooleanPreference().getFromValue( 'Activate Skeinview', True )
self.archive.append( self.activateSkeinview )
self.displayLineTextWhenMouseMoves = preferences.BooleanPreference().getFromValue( 'Display Line Text when Mouse Moves', False )
self.addToArchivePhoenixUpdate( self.displayLineTextWhenMouseMoves )
self.drawArrows = preferences.BooleanPreference().getFromValue( 'Draw Arrows', True )
self.addToArchiveUpdate( self.drawArrows )
self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to Skeinview', '' )
self.archive.append( self.fileNameInput )
self.exportFileExtension = preferences.StringPreference().getFromValue( 'Export File Extension:', '' )
self.addToArchiveUpdate( self.exportFileExtension )
self.exportPostscriptProgram = preferences.StringPreference().getFromValue( 'Export Postscript Program:', 'gimp' )
self.addToArchiveUpdate( self.exportPostscriptProgram )
self.goAroundExtruderOffTravel = preferences.BooleanPreference().getFromValue( 'Go Around Extruder Off Travel', False )
self.addToArchivePhoenixUpdate( self.goAroundExtruderOffTravel )
self.pixelsPerMillimeter = preferences.FloatPreference().getFromValue( 'Pixels per Millimeter (ratio):', 15.0 )
self.addToArchivePhoenixUpdate( self.pixelsPerMillimeter )
self.screenHorizontalInset = preferences.IntPreference().getFromValue( 'Screen Horizontal Inset (pixels):', 50 )
self.addToArchivePhoenixUpdate( self.screenHorizontalInset )
self.screenVerticalInset = preferences.IntPreference().getFromValue( 'Screen Vertical Inset (pixels):', 200 )
self.addToArchivePhoenixUpdate( self.screenVerticalInset )
self.slideShowRate = preferences.FloatPreference().getFromValue( 'Slide Show Rate (layers/second):', 1.0 )
self.addToArchiveUpdate( self.slideShowRate )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Skeinview'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.analyze_plugins.skeinview.html' )
self.updateFunction = None
示例11: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
# Using string for integers so that fi elds in Preferences dialog line up
self.archive = []
self.activateTwitterbot = preferences.BooleanPreference().getFromValue( 'Activate Twitterbot', False )
self.archive.append( self.activateTwitterbot )
self.twitterUsername = preferences.StringPreference().getFromValue( 'Twitter Username:', '' )
self.archive.append( self.twitterUsername )
self.twitterPassword = preferences.StringPreference().getFromValue( 'Twitter Password:', '' )
self.archive.append( self.twitterPassword )
self.layersBetweenTweets = preferences.StringPreference().getFromValue( 'Layers Between Tweets:', '10' )
self.archive.append( self.layersBetweenTweets )
self.twitterHashtags = preferences.StringPreference().getFromValue( 'Hashtag(s):', '' )
self.archive.append( self.twitterHashtags )
self.startMessage = preferences.StringPreference().getFromValue( 'Start Message:', 'Starting <filename>...' )
self.archive.append( self.startMessage )
self.progressMessage = preferences.StringPreference().getFromValue( 'Progress Message:', '<filename> layer: <layernum>' )
self.archive.append( self.progressMessage )
self.finishMessage = preferences.StringPreference().getFromValue( 'Finish Message:', 'Finished <filename>!' )
self.archive.append( self.finishMessage )
self.percentageOfQuips = preferences.StringPreference().getFromValue( 'Percentage of Quips:', '3' )
self.archive.append( self.percentageOfQuips )
self.quips = preferences.StringPreference().getFromValue( 'Quip(s):', "ABS is the new black!|What's that smell???|Only at line <linenum> of <totallinesnum> :(|MakerBot: fixing the future!" )
self.archive.append( self.quips )
#quips = to_unicode( self.quips )
#self.archive.append( quips )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File In Which To Insert Twitterbot Code', '' )
self.archive.append( self.fileNameInput )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Twitterbot'
self.saveTitle = 'Save Preferences'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.twitterbot.html' )
示例12: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.addFeedRateEvenWhenUnchanging = preferences.BooleanPreference().getFromValue( 'Add FeedRate Even When Unchanging', True )
self.archive.append( self.addFeedRateEvenWhenUnchanging )
self.addSpaceBetweenWords = preferences.BooleanPreference().getFromValue( 'Add Space Between Words', True )
self.archive.append( self.addSpaceBetweenWords )
self.addZEvenWhenUnchanging = preferences.BooleanPreference().getFromValue( 'Add Z Even When Unchanging', True )
self.archive.append( self.addZEvenWhenUnchanging )
self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to be Converted to Gcode Step', '' )
self.archive.append( self.fileNameInput )
self.feedRateStepLength = preferences.FloatPreference().getFromValue( 'FeedRate Step Length (millimeters/second)', 0.1 )
self.archive.append( self.feedRateStepLength )
self.radiusStepLength = preferences.FloatPreference().getFromValue( 'Radius Step Length (millimeters)', 0.1 )
self.archive.append( self.radiusStepLength )
self.xStepLength = preferences.FloatPreference().getFromValue( 'X Step Length (millimeters)', 0.1 )
self.archive.append( self.xStepLength )
self.yStepLength = preferences.FloatPreference().getFromValue( 'Y Step Length (millimeters)', 0.1 )
self.archive.append( self.yStepLength )
self.zStepLength = preferences.FloatPreference().getFromValue( 'Z Step Length (millimeters)', 0.01 )
self.archive.append( self.zStepLength )
self.xOffset = preferences.FloatPreference().getFromValue( 'X Offset (millimeters)', 0.0 )
self.archive.append( self.xOffset )
self.yOffset = preferences.FloatPreference().getFromValue( 'Y Offset (millimeters)', 0.0 )
self.archive.append( self.yOffset )
self.zOffset = preferences.FloatPreference().getFromValue( 'Z Offset (millimeters)', 0.0 )
self.archive.append( self.zOffset )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Convert to Gcode Step'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.export_plugins.gcode_step.html' )
示例13: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
preferences.addListsToRepository( self )
preferences.LabelDisplay().getFromName( 'Fabmetheus Blog, Announcements & Questions:', self )
preferences.HelpPage().getFromNameAfterHTTP( 'fabmetheus.blogspot.com/', 'Fabmetheus Blog', self )
preferences.LabelDisplay().getFromName( 'Index of Local Documentation: ', self )
preferences.HelpPage().getFromNameSubName( 'Index', self )
preferences.LabelDisplay().getFromName( 'Manual, Wiki with Pictures & Charts: ', self )
preferences.HelpPage().getFromNameAfterWWW( 'bitsfrombytes.com/wiki/index.php?title=Skeinforge', 'Manual', self )
preferences.LabelDisplay().getFromName( 'Overview of Skeinforge: ', self )
preferences.HelpPage().getFromNameSubName( 'Overview', self, 'skeinforge.html' )
preferences.LabelSeparator().getFromRepository( self )
preferences.LabelDisplay().getFromName( 'Forums:', self )
preferences.LabelDisplay().getFromName( 'Bits from Bytes Printing Board:', self )
preferences.HelpPage().getFromNameAfterWWW( 'bitsfrombytes.com/fora/user/index.php?board=5.0', 'Bits from Bytes Printing Board', self )
preferences.LabelDisplay().getFromName( 'Bits from Bytes Software Board:', self )
preferences.HelpPage().getFromNameAfterWWW( 'bitsfrombytes.com/fora/user/index.php?board=4.0', 'Bits from Bytes Software Board', self )
preferences.LabelDisplay().getFromName( 'Skeinforge Contributions Thread:', self )
preferences.HelpPage().getFromNameAfterHTTP( 'dev.forums.reprap.org/read.php?12,27562', 'Skeinforge Contributions Thread', self )
preferences.LabelDisplay().getFromName( 'Skeinforge Settings Thread:', self )
preferences.HelpPage().getFromNameAfterHTTP( 'dev.forums.reprap.org/read.php?12,27434', 'Skeinforge Settings Thread', self )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = None
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.help.html' )
示例14: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
self.archive = []
self.activateSpeed = preferences.BooleanPreference().getFromValue( 'Activate Speed:', True )
self.archive.append( self.activateSpeed )
self.addFlowRate = preferences.BooleanPreference().getFromValue( 'Add Flow Rate:', True )
self.archive.append( self.addFlowRate )
self.bridgeFeedRateMultiplier = preferences.FloatPreference().getFromValue( 'Bridge Feed Rate Multiplier (ratio):', 1.0 )
self.archive.append( self.bridgeFeedRateMultiplier )
self.bridgeFlowRateMultiplier = preferences.FloatPreference().getFromValue( 'Bridge Flow Rate Multiplier (ratio):', 1.0 )
self.archive.append( self.bridgeFlowRateMultiplier )
self.extrusionDiameterOverThickness = preferences.FloatPreference().getFromValue( 'Extrusion Diameter over Thickness (ratio):', 1.25 )
self.archive.append( self.extrusionDiameterOverThickness )
self.feedRatePerSecond = preferences.FloatPreference().getFromValue( 'Feed Rate (mm/s):', 16.0 )
self.archive.append( self.feedRatePerSecond )
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Speed', '' )
self.archive.append( self.fileNameInput )
self.flowRateSetting = preferences.FloatPreference().getFromValue( 'Flow Rate Setting (float):', 210.0 )
self.archive.append( self.flowRateSetting )
self.maximumZFeedRatePerSecond = preferences.FloatPreference().getFromValue( 'Maximum Z Feed Rate (mm/s):', 8.0 )
self.archive.append( self.maximumZFeedRatePerSecond )
self.orbitalFeedRateOverOperatingFeedRate = preferences.FloatPreference().getFromValue( 'Orbital Feed Rate over Operating Feed Rate (ratio):', 0.5 )
self.archive.append( self.orbitalFeedRateOverOperatingFeedRate )
self.perimeterFeedRateOverOperatingFeedRate = preferences.FloatPreference().getFromValue( 'Perimeter Feed Rate over Operating Feed Rate (ratio):', 1.0 )
self.archive.append( self.perimeterFeedRateOverOperatingFeedRate )
self.perimeterFlowRateOverOperatingFlowRate = preferences.FloatPreference().getFromValue( 'Perimeter Flow Rate over Operating Flow Rate (ratio):', 1.0 )
self.archive.append( self.perimeterFlowRateOverOperatingFlowRate )
self.travelFeedRatePerSecond = preferences.FloatPreference().getFromValue( 'Travel Feed Rate (mm/s):', 16.0 )
self.archive.append( self.travelFeedRatePerSecond )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.executeTitle = 'Speed'
self.saveCloseTitle = 'Save and Close'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.speed.html' )
示例15: __init__
def __init__( self ):
"Set the default preferences, execute title & preferences fileName."
#Set the default preferences.
preferences.addListsToRepository( self )
#Create the archive, title of the execute button, title of the dialog & preferences fileName.
self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Outsetted', self, '' )
self.activateOutset = preferences.BooleanPreference().getFromValue( 'Activate Outset:', self, True )
self.executeTitle = 'Outset'
preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.craft_plugins.outset.html' )