本文整理汇总了Python中lib.reporting.logger.Logger.add方法的典型用法代码示例。如果您正苦于以下问题:Python Logger.add方法的具体用法?Python Logger.add怎么用?Python Logger.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lib.reporting.logger.Logger
的用法示例。
在下文中一共展示了Logger.add方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: describe
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe(self, frame):
try:
menu_bar = frame.GetMenuBar()
if menu_bar is not None:
self.describe_menu_bar(menu_bar)
Logger.add(" ")
except AttributeError:
pass
示例2: describe_menu
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe_menu(self, menu, name):
Logger.add(" ")
Logger.add(" Menu: '%s' Item count: %d" % (name, menu.MenuItemCount))
Logger.add(" Id Label Text")
Logger.add(" ---- ------------------------ ---------------------")
for item in menu.MenuItems:
self.describe_menu_item(item)
if item.SubMenu is not None and item.SubMenu.MenuItemCount > 0:
self.describe_submenu(item.SubMenu)
示例3: describe_children
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe_children(self, hwnd):
Logger.add(" hwnd Classname ScreenPos Label")
Logger.add(" ------- ------------------------ ------------ ------------------")
children = facade.get_children(hwnd)
for hwnd, class_name, text in children:
rect = facade.get_window_rect(hwnd)
Logger.add(" %8d %-24.24s (%4d, %4d) '%s'" % (hwnd, class_name, rect[0], rect[1], text))
示例4: describe_wxdialog_windows
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe_wxdialog_windows(self, win, level=0):
msg = ""
if len(win.Children) == 0:
return
margin = "%*.*s" % (level * 3, level * 3, "")
if level > 0:
Logger.add(" ")
Logger.add(" %sClassName: %s" % (margin, win.ClassName))
Logger.add(" %sId Classname Label Name" % margin)
Logger.add(" %s---- ------------------------ ------------------------ ----------------" % margin)
try:
for child in win.Children:
child_id = child.GetId()
msg = " %s%4d %-24.24s %-24.24s '%s'" % (margin, child_id, child.GetClassName(), child.GetLabel(), child.GetName())
Logger.add(msg)
self.describe_wxdialog_windows(child, level + 1)
except AttributeError:
Logger.add(" No children exists")
except Exception, ex:
pass
示例5: Destroy
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def Destroy(self, *args, **kw):
Logger.add("Destroy called")
self._shown = False
Logger.add_close(self)
wxFrame.Destroy(self, *args, **kw)
示例6: describe_submenu
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe_submenu(self, submenu):
Logger.add(" ")
Logger.add(" Submenu Item count: %d" % (submenu.MenuItemCount))
Logger.add(" Id Label Text")
Logger.add(" ---- ------------------------ ---------------------")
for item in submenu.MenuItems:
Logger.add(" %4d %-24.24s '%s' " % (item.Id, item.Label, item.Text))
Logger.add(" ")
示例7: describe_menu_item
# 需要导入模块: from lib.reporting.logger import Logger [as 别名]
# 或者: from lib.reporting.logger.Logger import add [as 别名]
def describe_menu_item(self, item):
Logger.add(" %4d %-24.24s '%s' " % (item.Id, item.Label, item.Text))