vigneshmanix / python-progressbar

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

Adding code to support a formatter function for the counter #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. There is no problem to reproduce.

What is the expected output? What do you see instead?
There is no output expected yet.

What version of the product are you using? On what operating system?
progressbar-2.3.tar.gz

Please provide any additional information below.

I'm writing code that counts drive space in bytes and I have a function to 
convert bytes to KB, MB, GB, etc. The progress Counter() only counts bytes and 
the "format" argument is not sophisticated enough for deciding KB/MB/etc. 
Adding code to format the counter would be very useful for me.

I have made a clone and some changes if you would like to pull and/or alter 
them:
http://code.google.com/r/tstone2077-counter-formatter-func/

Original issue reported on code.google.com by tstone2...@gmail.com on 28 Oct 2011 at 6:56

GoogleCodeExporter commented 9 years ago
I think people should just create their own Widget subclasses to support these 
more complex/generic use cases. 

Original comment by nilton.v...@gmail.com on 22 Dec 2012 at 5:45

GoogleCodeExporter commented 9 years ago
Thanks for the contribution, though.

Original comment by nilton.v...@gmail.com on 22 Dec 2012 at 5:46