Skip to content

Commit

Permalink
Added how to change progress widget's label tip to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszb committed Jun 6, 2013
1 parent c3d7c08 commit 5f139a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Expand Up @@ -196,6 +196,19 @@ you need to make some customization, here we present some examples::
datetime.datetime(2013, 5, 12, 22, 2, 26, 792901)


Tips & Tricks
=============

How to change label of the progress widget
------------------------------------------

::

>>> import frogress
>>> items = [1, 2, 3, 4, 5]
>>> widgets = [frogress.BarWidget, frogress.ProgressWidget('Items: '), frogress.TimerWidget]
>>> for item in frogress.bar(items, widgets=widgets):
>>> pass


.. _lxml: http://lxml.de/
Expand Down

0 comments on commit 5f139a5

Please sign in to comment.