本文整理汇总了Python中printing.InfoPrintCapable类的典型用法代码示例。如果您正苦于以下问题:Python InfoPrintCapable类的具体用法?Python InfoPrintCapable怎么用?Python InfoPrintCapable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了InfoPrintCapable类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
self.__actionDict = {}
infoer = InfoPrintCapable()
# infoer.doprint(= True
infoer.module = self.__module__
infoer.class_ = self.__class__.__name__
self.__infoer = infoer
示例2: Copyright
# Copyright (c) 2006 Visenso GmbH
from VisItem import VisItem, VisItemParams
from PartModuleVis import PartModuleVis, PartModuleVisParams
from PartColoredVis import PartColoredVis, PartColoredVisParams
from PartInteractorVis import PartInteractorVis, PartInteractorVisParams
from coPyModules import Probe3D
from Utils import ParamsDiff, CopyParams
from KeydObject import RUN_ALL, VIS_POINTPROBING
from printing import InfoPrintCapable
_infoer = InfoPrintCapable()
_infoer.doPrint = False # True
class PartPointProbingVis(PartModuleVis, PartColoredVis, PartInteractorVis):
""" VisItem to compute probing point for 3d objects """
def __init__(self):
PartModuleVis.__init__(self,Probe3D, VIS_POINTPROBING, self.__class__.__name__,['meshIn'],['gOcttreesIn'],[],[],['gdataIn'],[],[], 1, True, True)
PartColoredVis.__init__(self)
PartInteractorVis.__init__(self)
self.params = PartPointProbingVisParams()
self.__initBase()
def __initBase(self):
""" __initBase is called from the constructor and after the class was unpickled """
self.__startpoint1 = None
self.__firstTime = True
示例3: Copyright
# Copyright (c) 2006 Visenso GmbH
import os
import sys
#from itertools import ifilter
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import QObject, pyqtSignal
from printing import InfoPrintCapable
from auxils import OneToOne
from qtauxils import SelectedItemsIterator, itemFromProxyIndex
# import StaticImages
_infoer = InfoPrintCapable()
_infoer.doPrint = False # True
# Decorator for printing function-calls.
_logger = InfoPrintCapable()
_logger.doPrint = False # True
_logger.startString = '(log)'
_logger.module = __name__
def _log(func):
def logged_func(*args, **kwargs):
_logger.function = repr(func)
_logger.write('')
return func(*args, **kwargs)
return logged_func
from vtrans import coTranslate
示例4: import
from CoviseMsgLoop import CoviseMsgLoop, CoviseMsgLoopAction
from paramAction import NotifyAction
from printing import InfoPrintCapable
from coviseCase import (
CoviseCaseFileItem,
CoviseCaseFile,
GEOMETRY_2D,
GEOMETRY_3D,
SCALARVARIABLE,
VECTOR3DVARIABLE)
from ErrorLogAction import ErrorLogAction
from CoviseMsgLoop import CoviseMsgLoop, CoviseMsgLoopAction
infoer = InfoPrintCapable()
infoer.doPrint = False # True Toggle talkativeness of this script.
class PartDescriptionAnalyzer(object):
def __init__(self, candidateString):
# Regexp fitting for a 2d-part-description that comes with a covise-message.
self.regexp2dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(2D|d).*'
self.regexp3dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(3D|d).*'
self.regexp2dOr3dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(2|3D|d).*'
self.candidateString = candidateString
def is2dPartDescription(self):
"""Return if self.candidateString is a part-2d-description.
示例5: Copyright
# Part of the vr-prepare program for dc
# Copyright (c) 2006 Visenso GmbH
from KeydObject import globalKeyHandler, RUN_ALL, globalColorMgrKey, coKeydObject, TYPE_COLOR_TABLE
from Utils import mergeGivenParams
from printing import InfoPrintCapable
_infoer = InfoPrintCapable()
_infoer.doPrint = False
import covise
class coColorTable(coKeydObject):
def __init__(self):
coKeydObject.__init__(self, TYPE_COLOR_TABLE, 'ColorTable')
self.params = coColorTableParams()
self.__initColorMapsFromConfig()
def __initColorMapsFromConfig(self):
# the Colormaps section has to be like
# Colormaps
# {
# <name of colormap> <anyText>
# }
#
if not hasattr( covise, "getCoConfigSubEntries" ):
self.params.colorMapList = coColorTableParams.defaultColorMapList ######["Standard", "Star", "ITMS", "Rainbow"]
return