Commits

Lars Yencken committed 878fe6b

Adds demo description

  • Participants
  • Parent commits ca1f4be

Comments (0)

Files changed (1)

 [-------------------] 100% (9s)
 }}}
 
-Try this example in your python console and you'll get to watch the animated progress bar work its way down. Basically, it can wrap any iterator with a {{{__len__}}} method. It can also be passed a number, e.g. {{{withProgress(my_iter, 100)}}}, so that it only updates once every 100 iterations. This can be useful for very fast loops where the progress bar itself may be the slowest part.
+Try this example in your python console and you'll get to watch the animated progress bar work its way down. Basically, it can wrap any iterator with a {{{__len__}}} method. It can also be passed a number, e.g. {{{withProgress(my_iter, 100)}}}, so that it only updates once every 100 iterations. This can be useful for very fast loops where the progress bar itself may be the slowest part.
+
+=== Demo ===
+
+{{{consoleLog}}} comes with a built-in demo. You run it by typing:
+
+{{{
+#!pycon
+
+>>> import consoleLog
+>>> consoleLog.demo()
+}}}
+
+from your python prompt.