Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def describe_window(self, hwnd):
     if hwnd == None:
         hwnd = win.get_active_window()
     Logger.header(" Window Description hwnd: %d Classname: '%s' Label: '%s'" % (hwnd, win.get_classname(hwnd), win.get_window_text))
     Logger.header2("Native Description")
     self.describe_children(hwnd)
 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)