(pyautogui_copy)
| 1156 | |
| 1157 | |
| 1158 | def get_configured_pyautogui(pyautogui_copy): |
| 1159 | if ( |
| 1160 | IS_LINUX |
| 1161 | and hasattr(pyautogui_copy, "_pyautogui_x11") |
| 1162 | and "DISPLAY" in os.environ.keys() |
| 1163 | ): |
| 1164 | if ( |
| 1165 | getattr(sb_config, "_pyautogui_x11_display", None) |
| 1166 | and hasattr(pyautogui_copy._pyautogui_x11, "_display") |
| 1167 | and ( |
| 1168 | sb_config._pyautogui_x11_display |
| 1169 | == pyautogui_copy._pyautogui_x11._display |
| 1170 | ) |
| 1171 | ): |
| 1172 | pass |
| 1173 | else: |
| 1174 | import Xlib.display |
| 1175 | pyautogui_copy._pyautogui_x11._display = ( |
| 1176 | Xlib.display.Display(os.environ['DISPLAY']) |
| 1177 | ) |
| 1178 | sb_config._pyautogui_x11_display = ( |
| 1179 | pyautogui_copy._pyautogui_x11._display |
| 1180 | ) |
| 1181 | return pyautogui_copy |
| 1182 | |
| 1183 | |
| 1184 | def uc_gui_press_key(driver, key): |
no outgoing calls
no test coverage detected
searching dependent graphs…