本文整理汇总了Python中skeinforge_application.skeinforge_utilities.skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode函数的典型用法代码示例。如果您正苦于以下问题:Python getFileOrDirectoryTypesUnmodifiedGcode函数的具体用法?Python getFileOrDirectoryTypesUnmodifiedGcode怎么用?Python getFileOrDirectoryTypesUnmodifiedGcode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getFileOrDirectoryTypesUnmodifiedGcode函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: execute
def execute(self):
"Comb button has been clicked."
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(
self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled
)
for fileName in fileNames:
writeOutput(fileName)
开发者ID:GottfriedSp,项目名称:ReplicatorG,代码行数:7,代码来源:comb.py
示例2: execute
def execute(self):
'Skeinforge button has been clicked.'
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
window = None
for fileName in fileNames:
window = skeinforge_craft.writeOutput(fileName)
return window
开发者ID:AKAMEDIASYSTEM,项目名称:ReplicatorG,代码行数:7,代码来源:skeinforge.py
示例3: execute
def execute(self):
"Craft button has been clicked."
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(
self.fileNameInput.value, [], self.fileNameInput.wasCancelled
)
for fileName in fileNames:
writeOutput(fileName)
开发者ID:Ademan,项目名称:Cura,代码行数:7,代码来源:skeinforge_craft.py
示例4: execute
def execute(self):
'Skeinforge button has been clicked.'
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
pypyExe = self.getPyPyExe()
for fileName in fileNames:
if platform.python_implementation() == "PyPy":
skeinforge_craft.writeOutput(fileName)
elif pypyExe == False:
print "************************************************"
print "* Failed to find pypy, so slicing with python! *"
print "************************************************"
skeinforge_craft.writeOutput(fileName)
print "************************************************"
print "* Failed to find pypy, so sliced with python! *"
print "************************************************"
else:
subprocess.call([pypyExe, __file__, fileName])
开发者ID:ghagen01,项目名称:SkeinPyPy,代码行数:17,代码来源:skeinforge.py
示例5: execute
def execute(self):
'Skeinforge button has been clicked.'
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
# expotFileName = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
if self.usePyPyforSlicing.value :
for fileName in fileNames:
os.getcwd()
CommandOutput=os.popen('C:\pypy-1.9\pypy.exe %s%s %s' % (os.getcwd(),'\skeinforge_application\skeinforge_utilities\skeinforge_craft.py', fileName)).read() #for pypy slicing
# print fileName
print CommandOutput #for pypy slicing
# print "Slicing finished....."
# skeinlayer.writeOutput('', '', fileNamePenultimate,)
fileNameSkeinLayer = fileName[: fileName.rfind('.')] + '_penultimate.gcode'
skeinlayer.writeOutput('', '', fileNameSkeinLayer, '')
# fileNamePenultimate = fileName[: fileName.rfind('.')] + '_penultimate.gcode'
else:
for fileName in fileNames:
skeinforge_craft.writeOutput(fileName) #use this line instead of the below two for regular python slicing
开发者ID:3DNogi,项目名称:SFACT,代码行数:18,代码来源:sfact.py
示例6: execute
def execute(self):
'Convert to gcode step button has been clicked.'
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, ['.gcode'], self.fileNameInput.wasCancelled)
for fileName in fileNames:
writeOutput(fileName)
开发者ID:AKAMEDIASYSTEM,项目名称:ReplicatorG,代码行数:5,代码来源:gcode_step.py
注:本文中的skeinforge_application.skeinforge_utilities.skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论