• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python gcodec.getTextIfEmpty函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中skeinforge_tools.skeinforge_utilities.gcodec.getTextIfEmpty函数的典型用法代码示例。如果您正苦于以下问题:Python getTextIfEmpty函数的具体用法?Python getTextIfEmpty怎么用?Python getTextIfEmpty使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getTextIfEmpty函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Write scalable vector graphics for a skeinforge gcode file, if activate vectorwrite is selected."
	vectorwritePreferences = preferences.getReadRepository( VectorwritePreferences() )
	if not vectorwritePreferences.activateVectorwrite.value:
		return
	gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
	writeGivenPreferences( fileName, gcodeText, vectorwritePreferences )
开发者ID:TeamTeamUSA,项目名称:ReplicatorG,代码行数:7,代码来源:vectorwrite.py


示例2: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Display a skeinviewed gcode file for a skeinforge gcode file, if 'Activate Skeinview' is selected."
	skeinviewPreferences = SkeinviewPreferences()
	preferences.getReadPreferences( skeinviewPreferences )
	if skeinviewPreferences.activateSkeinview.value:
		gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
		displayFileGivenText( fileName, gcodeText, skeinviewPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:7,代码来源:skeinview.py


示例3: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Write scalable vector graphics for a skeinforge gcode file, if activate vectorwrite is selected."
	repository = settings.getReadRepository( VectorwriteRepository() )
	if not repository.activateVectorwrite.value:
		return
	gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
	analyzeFileGivenText( fileName, gcodeText, repository )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:7,代码来源:vectorwrite.py


示例4: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Write a beholded gcode file for a skeinforge gcode file, if 'Activate Behold' is selected."
	beholdPreferences = BeholdPreferences()
	preferences.getReadPreferences( beholdPreferences )
	if beholdPreferences.activateBehold.value:
		gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
		displayBeholdFileGivenText( fileName, gcodeText, beholdPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:7,代码来源:behold.py


示例5: writeOutput

def writeOutput( fileName = '', gcodeText = '' ):
	"Analyze a gcode file.  If no fileName is specified, comment the first gcode file in this folder that is not modified."
	gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
	pluginFilenames = getPluginFilenames()
	for pluginFilename in pluginFilenames:
		analyzePluginsDirectoryPath = getPluginsDirectoryPath()
		pluginModule = gcodec.getModuleWithDirectoryPath( analyzePluginsDirectoryPath, pluginFilename )
		if pluginModule != None:
			pluginModule.writeOutput( fileName, gcodeText )
开发者ID:TeamTeamUSA,项目名称:ReplicatorG,代码行数:9,代码来源:analyze.py


示例6: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Analyze a gcode file."
	gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
	pluginFileNames = getPluginFileNames()
	for pluginFileName in pluginFileNames:
		analyzePluginsDirectoryPath = getPluginsDirectoryPath()
		pluginModule = gcodec.getModuleWithDirectoryPath( analyzePluginsDirectoryPath, pluginFileName )
		if pluginModule != None:
			pluginModule.writeOutput( fileName, gcodeText )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:9,代码来源:analyze.py


示例7: getCraftedText

def getCraftedText(fileName, text="", carvePreferences=None):
    "Get carved text."
    if gcodec.getHasSuffix(fileName, ".svg"):
        text = gcodec.getTextIfEmpty(fileName, text)
        return text
    return getCraftedTextFromFileName(fileName, carvePreferences=None)
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:6,代码来源:carve.py


示例8: writeOutput

def writeOutput( fileName, gcodeText = '' ):
	"Display a skeinviewed gcode file for a skeinforge gcode file, if 'Activate Skeinview' is selected."
	repository = settings.getReadRepository( SkeinviewRepository() )
	if repository.activateSkeinview.value:
		gcodeText = gcodec.getTextIfEmpty( fileName, gcodeText )
		analyzeFileGivenText( fileName, gcodeText, repository )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:6,代码来源:skeinview.py


示例9: getCraftedText

def getCraftedText( fileName, text, homePreferences = None ):
	"Home a gcode linear move file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), homePreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:3,代码来源:home.py


示例10: getCraftedText

def getCraftedText( fileName, text, stretchRepository = None ):
	"Stretch a gcode linear move text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), stretchRepository )
开发者ID:FarMcKon,项目名称:skeinforge,代码行数:3,代码来源:stretch.py


示例11: getCraftedText

def getCraftedText( fileName, text = '', chamberRepository = None ):
	"Chamber the file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), chamberRepository )
开发者ID:TeamTeamUSA,项目名称:ReplicatorG,代码行数:3,代码来源:chamber.py


示例12: getCraftedText

def getCraftedText( fileName, text, coolPreferences = None ):
	"Cool a gcode linear move text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), coolPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:3,代码来源:cool.py


示例13: getCraftedText

def getCraftedText( fileName, text, combRepository = None ):
	"Comb a gcode linear move text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), combRepository )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:3,代码来源:comb.py


示例14: getCraftedText

def getCraftedText( fileName, text, clipRepository = None ):
	"Clip a gcode linear move file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), clipRepository )
开发者ID:TeamTeamUSA,项目名称:ReplicatorG,代码行数:3,代码来源:clip.py


示例15: getCraftedText

def getCraftedText( fileName, text = '', liftPreferences = None ):
	"Lift the preface file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), liftPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:3,代码来源:lift.py


示例16: getCraftedText

def getCraftedText( fileName, text, oozebaneRepository = None ):
	"Oozebane a gcode linear move file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), oozebaneRepository )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:3,代码来源:oozebane.py


示例17: getCraftedText

def getCraftedText( fileName, text = '', repository = None ):
	"Outset the preface file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), repository )
开发者ID:CNCBASHER,项目名称:skeinforge,代码行数:3,代码来源:outset.py


示例18: getCraftedText

def getCraftedText( fileName, text, unpauseRepository = None ):
	"Unpause a gcode linear move file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), unpauseRepository )
开发者ID:TeamTeamUSA,项目名称:ReplicatorG,代码行数:3,代码来源:unpause.py


示例19: getCraftedText

def getCraftedText( fileName, text = '', flowPreferences = None ):
	"Flow the file or text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), flowPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:3,代码来源:flow.py


示例20: getCraftedText

def getCraftedText( fileName, text, jitterPreferences = None ):
	"Jitter a gcode linear move text."
	return getCraftedTextFromText( gcodec.getTextIfEmpty( fileName, text ), jitterPreferences )
开发者ID:TeamTeamUSA,项目名称:SkeinFox,代码行数:3,代码来源:jitter.py



注:本文中的skeinforge_tools.skeinforge_utilities.gcodec.getTextIfEmpty函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python gcodec.getTextLines函数代码示例发布时间:2022-05-27
下一篇:
Python gcodec.getSplitLineBeforeBracketSemicolon函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap