當前位置: 首頁>>代碼示例>>Python>>正文


Python printing.InfoPrintCapable類代碼示例

本文整理匯總了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
開發者ID:nixz,項目名稱:covise,代碼行數:7,代碼來源:CoviseMsgLoop.py

示例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
開發者ID:nixz,項目名稱:covise,代碼行數:30,代碼來源:PartPointProbingVis.py

示例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 
開發者ID:nixz,項目名稱:covise,代碼行數:31,代碼來源:KeyedTreeView.py

示例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.
開發者ID:nixz,項目名稱:covise,代碼行數:30,代碼來源:Ensight2CoviseBegin.py

示例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
開發者ID:nixz,項目名稱:covise,代碼行數:30,代碼來源:coColorTable.py


注:本文中的printing.InfoPrintCapable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。