本文整理汇总了Python中lib.reporting.logger.Logger.bold_header方法的典型用法代码示例。如果您正苦于以下问题:Python Logger.bold_header方法的具体用法?Python Logger.bold_header怎么用?Python Logger.bold_header使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lib.reporting.logger.Logger
的用法示例。
在下文中一共展示了Logger.bold_header方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: describe_wxdialog
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import bold_header [as 别名]
def describe_wxdialog(self, win, level=0):
if win is None:
return
Logger.newline()
Logger.bold_header("wx Description\n Name: '%s'\n ClassName: '%s'\n Label: '%s'\n Nbr of children: %d" % (win.get_name(), win.get_classname(), win.get_label(), win.get_nbr_of_children()))
if win.get_nbr_of_children() > 0:
self.describe_wxdialog_windows(win)
示例2: describe_window
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import bold_header [as 别名]
def describe_window(self, hwnd=None):
if facade.has_win_implementation():
try:
nbr_of_children = len(facade.get_children(hwnd))
if hwnd is None:
hwnd = facade.get_active_window()
rect = facade.get_window_rect(hwnd)
Logger.bold_header("Window Description \n hwnd: %d \n Classname: '%s' \n Label: '%s'\n Nbr of children: %d\n Position: (%d, %d)\n Size: (%d, %d)" % (
hwnd, facade.get_classname(hwnd), facade.get_window_text(hwnd), nbr_of_children, rect[0], rect[1], rect[2], rect[3]))
Logger.header2("Native Description")
self.describe_children(hwnd)
except Exception, ex:
Logger.add_error("Native windows description failed")
示例3: start_app
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import bold_header [as 别名]
def start_app(myinstructions, path):
global instructions
instructions = myinstructions
Logger.bold_header("Starting application %s" % os.path.basename(path))
wrap_wx_classes()
run_python_file([path, ])