python wrapper for Xvfb, Xephyr and Xvnc
Project description
pyvirtualdisplay is a python wrapper for Xvfb, Xephyr and Xvnc
- Links:
documentation: http://ponty.github.com/PyVirtualDisplay
- Features:
- Known problems:
only a few back-end options are supported
- Possible applications:
GUI testing
automatic GUI screenshot
Basic usages
Start Xephyr:
from pyvirtualdisplay import Display xephyr=Display(visible=1, size=(320, 240)).start()
Create screenshot of xmessage with Xvfb:
from easyprocess import EasyProcess
from pyvirtualdisplay.smartdisplay import SmartDisplay
with SmartDisplay(visible=0, bgcolor='black') as disp:
with EasyProcess('xmessage hello'):
img = disp.waitgrab()
img.show()
Installation
General
Ubuntu
sudo apt-get install python-pip sudo apt-get install xvfb sudo apt-get install xserver-xephyr sudo apt-get install tightvncserver sudo pip install pyvirtualdisplay # optional sudo apt-get install python-imaging sudo apt-get install scrot sudo pip install pyscreenshot
Uninstall
# as root pip uninstall pyvirtualdisplay
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyVirtualDisplay-0.1.0.tar.gz.
File metadata
- Download URL: PyVirtualDisplay-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d1baf3f20030bcc44ac876182ba6e259a39f6dad1e7b6922513809cdd4bf98
|
|
| MD5 |
5b98c5f9396d63d995964c48bab5bffd
|
|
| BLAKE2b-256 |
7ee105d6b693671944c0b563a9135b3aa2488530f46a3befefc145b0d26eed45
|