本文整理汇总了Python中printing.InfoPrintCapable.module方法的典型用法代码示例。如果您正苦于以下问题:Python InfoPrintCapable.module方法的具体用法?Python InfoPrintCapable.module怎么用?Python InfoPrintCapable.module使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类printing.InfoPrintCapable
的用法示例。
在下文中一共展示了InfoPrintCapable.module方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import module [as 别名]
def __init__(self):
self.__actionDict = {}
infoer = InfoPrintCapable()
# infoer.doprint(= True
infoer.module = self.__module__
infoer.class_ = self.__class__.__name__
self.__infoer = infoer
示例2: InfoPrintCapable
# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import module [as 别名]
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
# Suitable list-view for tree-structure with items with keys
class KeyedTreeView(QtWidgets.QTreeView):
"""Viewer and controller for items with unique keys.