How to attach pyautogui to the virtual display?
问题 How do I attach pyautogui to the display in multithreaded mode? In the example of my code, pyautogui always has access to the upper display. Is it possible to have pyautogui control on each display? import os from selenium import webdriver from pyvirtualdisplay import Display import Xlib.display # ... # let's say i run this function in two threads def do_work(data): v_display = Display(visible=0, size=(900, 600)) v_display.start() # How can i attach v_display to the pyautogui? import