def select_module(page, screenshot): # go to first page for i in range(2): tk.click(365, 350) # go to correct page for i in range(page): tk.click(365, 670) if not tk.wait_and_click(screenshot): result = False
def select_module_combobox(page, option): ys = [ 92, 110, 130, 150, 170, 190, 210, 230, 250, 270, 290, 310, 330, 350, 370, 390, 410 ] tk.click(1411, 67) time.sleep(0.5) # go to first page for i in range(2): tk.click(1460, 103) # go to correct page for i in range(page): tk.click(1460, 420) tk.click(1411, ys[option])
def select_model_combobox(option): ys = [92, 110, 130, 150] tk.click(1756, 67) time.sleep(0.1) tk.click(1756, ys[option])
def select_weight_combobox(option): ys = [92, 110, 130, 150, 170, 190, 210, 230, 250, 270, 290] tk.click(1630, 67) time.sleep(0.1) tk.click(1630, ys[option])
def select_no_on_save_prompt(): time.sleep(0.2) if tk.wait_and_hover('save_question'): time.sleep(0.2) tk.click(975, 600) return True
def harmless_click_to_focus(): return tk.click(145, 1028)