Browse Source

updated README with context manager example and bumped version num

changes/49/376949/1
Corey Goldberg 8 years ago
parent
commit
1f37d6849d
  1. 13
      README.rst
  2. 2
      xvfbwrapper/__init__.py

13
README.rst

@ -47,6 +47,19 @@ In the X Window System, Xvfb or X virtual framebuffer is an X11 server that perf
vdisplay.stop()
***************************************
Example: Usage as a Context Manager
***************************************
::
from xvfbwrapper import Xvfb
with Xvfb() as xvfb:
# launch stuff inside virtual display here.
# It starts/stops in this code block.
**********************************************
Example: Headless Selenium WebDriver Tests
**********************************************

2
xvfbwrapper/__init__.py

@ -1,3 +1,3 @@
from xvfbwrapper import *
__version__ = '0.2.2'
__version__ = '0.2.3'
Loading…
Cancel
Save