Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > > pyvirtualdisplay > examples >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 0 bytes | April 17 2025 13:10:58. | |
headless.py | File | 245 bytes | April 17 2025 13:10:58. | |
lowres.py | File | 266 bytes | April 17 2025 13:10:58. | |
nested.py | File | 736 bytes | April 17 2025 13:10:58. | |
screenshot.py | File | 589 bytes | April 17 2025 13:10:58. | |
threadsafe.py | File | 772 bytes | April 17 2025 13:10:58. | |
vncserver.py | File | 284 bytes | April 17 2025 13:10:58. |
"Create screenshot of xmessage in background using 'smartdisplay' submodule" from easyprocess import EasyProcess from pyvirtualdisplay.smartdisplay import SmartDisplay # 'SmartDisplay' instead of 'Display' # It has 'waitgrab()' method. # It has more dependencies than Display. with SmartDisplay() as disp: with EasyProcess(["xmessage", "hello"]): # wait until something is displayed on the virtual display (polling method) # and then take a fullscreen screenshot # and then crop it. Background is black. img = disp.waitgrab() img.save("xmessage.png")
SILENT KILLER Tool