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)
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, ])
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")
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, ])