diff options
author | ryuslash | 2010-03-07 00:31:40 +0100 |
---|---|---|
committer | ryuslash | 2010-03-07 00:31:40 +0100 |
commit | a77b9c9d09fc022beaf140fb0d71443fe3cef501 (patch) | |
tree | b4da8c8fa0c782146006a9b1e2c921fe3225b08c /progressbar.py | |
parent | ba6b659fb80e843c1e7062c116a856873e14ad6a (diff) | |
parent | 9ed19eae00538b2ec4f24dd298737e27139d8b2a (diff) | |
download | 4grab-a77b9c9d09fc022beaf140fb0d71443fe3cef501.tar.gz 4grab-a77b9c9d09fc022beaf140fb0d71443fe3cef501.zip |
Merged
Diffstat (limited to 'progressbar.py')
-rw-r--r-- | progressbar.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/progressbar.py b/progressbar.py index 0163c12..8143be9 100644 --- a/progressbar.py +++ b/progressbar.py @@ -36,17 +36,13 @@ class Progress(): def show_progress(self, value): str_value = str(value) str_maxvalue = str(self.maxvalue) - #true_maxwidth = self.maxwidth - 4 - len(str_value) - len(str_maxvalue) true_maxwidth = self.__get_true_maxwidth(len(str_value), len(str_maxvalue)) - #print true_maxwidth, ":", self.maxvalue, ":", value # for debugging purposes if self.maxvalue == 0: progress = true_maxwidth else: progress = int(round((true_maxwidth/float(self.maxvalue))*value)) - #self.fd.write("\r%s/%s [%s%s]" % (str_value, str_maxvalue, self.prog_char * progress, self.fill_char * (true_maxwidth - progress))) - #self.fd.flush() self.__write_progress(str_value, str_maxvalue, progress, true_maxwidth) def __write_progress(self, str_value, str_maxvalue, progress, true_maxwidth): |