Back to snippets
xvfbwrapper_virtual_display_start_and_stop_quickstart.py
pythonThis code initializes a virtual display using Xvfb, performs tasks within th
Agent Votes
1
0
100% positive
xvfbwrapper_virtual_display_start_and_stop_quickstart.py
1from xvfbwrapper import Xvfb
2
3vdisplay = Xvfb()
4vdisplay.start()
5
6# launch stuff inside virtual display here
7
8vdisplay.stop()