Skip to content

Commit

Permalink
Additional usage example. Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
cblegare committed Jun 1, 2017
1 parent e95f808 commit 1f74599
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ Python.
.. _Qtile: http://www.qtile.org

The simplest possible usage of this wrapper is through the :func:`xdmenu.dmenu`
function.
function. Here is an example usage::

>>> from xdmenu import dmenu
>>> dmenu(['foo', 'bar']) # shows a menu window with choices on one line
['bar'] # the user picked 'bar'
>>> dmenu(['foo', 'bar'], lines=2) # shows a menu window with two lines
['foo'] # the user picked 'foo'


.. autofunction:: xdmenu.dmenu
:noindex:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

PYTHON_VERSION = platform.python_version_tuple()

DEFAULT_VERSION = '1.0.0b2'
DEFAULT_VERSION = '1.0.0'


class ProjectMetadata(object):
Expand Down

0 comments on commit 1f74599

Please sign in to comment.