diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 15:17:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 15:17:24 +0200 |
commit | 58f38f399387b44b956e785e1d578d0f621354e6 (patch) | |
tree | 8e9a6bb9f659db8f58d73b0c416572a8212abfcf /module/Progress.py | |
parent | youtube, new file format (diff) | |
download | pyload-58f38f399387b44b956e785e1d578d0f621354e6.tar.xz |
fixes, cleanup, summary for each package
Diffstat (limited to 'module/Progress.py')
-rw-r--r-- | module/Progress.py | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/module/Progress.py b/module/Progress.py deleted file mode 100644 index 1ce4903a4..000000000 --- a/module/Progress.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python -""" - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, see <http://www.gnu.org/licenses/>. - - @author: mkaay -""" - -class Progress: - def __init__(self, maximum=0, minimum=100): - self.maximum = maximum - self.minimum = minimum - self.value = 0 - self.notify = None - - def setRange(self, maximum, minimum): - self.maximum = maximum - self.minimum = minimum - - def setValue(self, value): - if not value == self.value: - self.value = value - if self.notify: - self.notify() - - def getPercent(self): - try: - return int(self.value) - except: - return 0 |