本文整理汇总了Python中skeinforge_tools.skeinforge_utilities.gcodec.isProcedureDoneOrFileIsEmpty函数的典型用法代码示例。如果您正苦于以下问题:Python isProcedureDoneOrFileIsEmpty函数的具体用法?Python isProcedureDoneOrFileIsEmpty怎么用?Python isProcedureDoneOrFileIsEmpty使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了isProcedureDoneOrFileIsEmpty函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, insetPreferences = None ):
"Inset the preface gcode text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'inset' ):
return gcodeText
if insetPreferences == None:
insetPreferences = preferences.getReadPreferences( InsetPreferences() )
return InsetSkein().getCraftedGcode( insetPreferences, gcodeText )
示例2: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, repository = None ):
"Inset the preface gcode text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'inset' ):
return gcodeText
if repository == None:
repository = settings.getReadRepository( InsetRepository() )
return InsetSkein().getCraftedGcode( gcodeText, repository )
示例3: getCraftedTextFromText
def getCraftedTextFromText( text, prefaceRepository = None ):
"Preface and convert an svg text."
if gcodec.isProcedureDoneOrFileIsEmpty( text, 'preface' ):
return text
if prefaceRepository == None:
prefaceRepository = settings.getReadRepository( PrefaceRepository() )
return PrefaceSkein().getCraftedGcode( prefaceRepository, text )
示例4: getCraftedTextFromText
def getCraftedTextFromText( text, prefacePreferences = None ):
"Preface and convert an svg text."
if gcodec.isProcedureDoneOrFileIsEmpty( text, 'preface' ):
return text
if prefacePreferences == None:
prefacePreferences = preferences.getReadPreferences( PrefacePreferences() )
return PrefaceSkein().getCraftedGcode( prefacePreferences, text )
示例5: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, clipRepository = None ):
"Clip a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'clip' ):
return gcodeText
if clipRepository == None:
clipRepository = preferences.getReadRepository( ClipRepository() )
if not clipRepository.activateClip.value:
return gcodeText
return ClipSkein().getCraftedGcode( clipRepository, gcodeText )
示例6: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, wipeRepository = None ):
"Wipe a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'wipe' ):
return gcodeText
if wipeRepository == None:
wipeRepository = preferences.getReadRepository( WipeRepository() )
if not wipeRepository.activateWipe.value:
return gcodeText
return WipeSkein().getCraftedGcode( gcodeText, wipeRepository )
示例7: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, stretchRepository = None ):
"Stretch a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'stretch' ):
return gcodeText
if stretchRepository == None:
stretchRepository = settings.getReadRepository( StretchRepository() )
if not stretchRepository.activateStretch.value:
return gcodeText
return StretchSkein().getCraftedGcode( gcodeText, stretchRepository )
示例8: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, combRepository = None ):
"Comb a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'comb' ):
return gcodeText
if combRepository == None:
combRepository = settings.getReadRepository( CombRepository() )
if not combRepository.activateComb.value:
return gcodeText
return CombSkein().getCraftedGcode( combRepository, gcodeText )
示例9: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, coolPreferences = None ):
"Cool a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'cool' ):
return gcodeText
if coolPreferences == None:
coolPreferences = preferences.getReadPreferences( CoolPreferences() )
if not coolPreferences.activateCool.value:
return gcodeText
return CoolSkein().getCraftedGcode( gcodeText, coolPreferences )
示例10: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, homePreferences = None ):
"Home a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'home' ):
return gcodeText
if homePreferences == None:
homePreferences = preferences.getReadPreferences( HomePreferences() )
if not homePreferences.activateHome.value:
return gcodeText
return HomeSkein().getCraftedGcode( gcodeText, homePreferences )
示例11: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, repository = None ):
"Dimension a gcode text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'dimension' ):
return gcodeText
if repository == None:
repository = settings.getReadRepository( DimensionRepository() )
if not repository.activateDimension.value:
return gcodeText
return DimensionSkein().getCraftedGcode( gcodeText, repository )
示例12: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, lashPreferences = None ):
"Get a lashed gcode linear move text from text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'lash' ):
return gcodeText
if lashPreferences == None:
lashPreferences = preferences.getReadPreferences( LashPreferences() )
if not lashPreferences.activateLash.value:
return gcodeText
return LashSkein().getCraftedGcode( gcodeText, lashPreferences )
示例13: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, hopRepository = None ):
"Hop a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'hop' ):
return gcodeText
if hopRepository == None:
hopRepository = settings.getReadRepository( HopRepository() )
if not hopRepository.activateHop.value:
return gcodeText
return HopSkein().getCraftedGcode( gcodeText, hopRepository )
示例14: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, repository = None ):
"Widen the preface gcode text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'widen' ):
return gcodeText
if repository == None:
repository = settings.getReadRepository( WidenRepository() )
if not repository.activateWiden.value:
return gcodeText
return WidenSkein().getCraftedGcode( gcodeText, repository )
示例15: getCraftedTextFromText
def getCraftedTextFromText( gcodeText, feedRepository = None ):
"Feed a gcode linear move text."
if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'feed' ):
return gcodeText
if feedRepository == None:
feedRepository = settings.getReadRepository( FeedRepository() )
if not feedRepository.activateFeed.value:
return gcodeText
return FeedSkein().getCraftedGcode( gcodeText, feedRepository )