Is there any possible way of capturing the screenshot of running desktop application in python using its PID. The application is started from within the python program .
I am familiar with win32gui in windows but I don't know it's alternative in Linux. Win32gui can find windows of running program by its name. Is there any way to do the same in Linux, if PID solution is not possible.