def describe_wxdialog(self, win, level=0): if win is None: return try: if len(win.Children) == 0: return except AttributeError: return Logger.newline() Logger.header2("wx Description") Logger.add(" Id Classname Label Name") Logger.add(" ---- ------------------------ ---------------- ----------------") self.describe_wxdialog_windows(win)
def describe_menu_bar(self, menu_bar): Logger.newline() Logger.header2("Menu Bar: count = %d" % menu_bar.MenuCount) for menu, name in menu_bar.Menus: self.describe_menu(menu, name)