yingchun79 / python-progressbar

Automatically exported from code.google.com/p/python-progressbar
Other
0 stars 0 forks source link

'Attributes' feature implemented #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have implemented a feature allowing ProgressBar to hold a dictionary of 
'attributes' that can be updated when calling ProgressBar.update.

These attributes can then be accessed from within widgets to display 
information other than just a simple progress indication e.g. current filename.

I have also implemented a generic Attribute widget that takes a format string 
and displays a number of attributes accordingly.

There is an example in examples.py

Code available on a feature branch on my github:

https://github.com/fnoble/python-progressbar/tree/attributes

It would be wonderful to have this merged upstream, if you would like to do so 
then please let me know if you would like me to make any alterations or if you 
need me to move this from git to mercurial.

Thanks,
Fergus

Original issue reported on code.google.com by fer...@swift-nav.com on 30 Nov 2012 at 9:09

GoogleCodeExporter commented 9 years ago
Hi Fergus,

That's a nice idea. Would you mind sending a code review through 
https://codereview.appspot.com/? I didn't try that yet, but had registered 
python-progressbar there thinking about this use case.

Thanks,
-- Nilton

Original comment by nilton.v...@gmail.com on 22 Dec 2012 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by nilton.v...@gmail.com on 22 Dec 2012 at 10:07