本文整理汇总了Python中printing.InfoPrintCapable.doPrint方法的典型用法代码示例。如果您正苦于以下问题:Python InfoPrintCapable.doPrint方法的具体用法?Python InfoPrintCapable.doPrint怎么用?Python InfoPrintCapable.doPrint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类printing.InfoPrintCapable
的用法示例。
在下文中一共展示了InfoPrintCapable.doPrint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Copyright
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
# 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
示例2: import
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
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.
示例3: InfoPrintCapable
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
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: Copyright
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
# 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