updated README with context manager example and bumped version num

This commit is contained in:
Corey Goldberg 2013-09-27 11:08:13 -04:00
parent 87e6a39f99
commit 1f37d6849d
2 changed files with 14 additions and 1 deletions

View File

@ -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
**********************************************

View File

@ -1,3 +1,3 @@
from xvfbwrapper import *
__version__ = '0.2.2'
__version__ = '0.2.3'