diff --git a/README.rst b/README.rst index f8179ae..5e9a138 100644 --- a/README.rst +++ b/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 ********************************************** diff --git a/xvfbwrapper/__init__.py b/xvfbwrapper/__init__.py index 328bc38..9b9aeb5 100644 --- a/xvfbwrapper/__init__.py +++ b/xvfbwrapper/__init__.py @@ -1,3 +1,3 @@ from xvfbwrapper import * -__version__ = '0.2.2' +__version__ = '0.2.3'