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