summaryrefslogtreecommitdiff
path: root/DysonInstaller
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-09-01 22:08:25 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-09-01 22:08:25 +0400
commitc025611417b6b355530815e57a86ff5fbcac5b6a (patch)
treeb45931ef478e9e854ddca5a3d70fd1933ab5d4c1 /DysonInstaller
parentafa42ac2d8d2e6e15d20768594a7f594bef9e847 (diff)
downloadlive-c025611417b6b355530815e57a86ff5fbcac5b6a.tar.gz
New method - reset()
Diffstat (limited to 'DysonInstaller')
-rw-r--r--DysonInstaller/snack/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/DysonInstaller/snack/__init__.py b/DysonInstaller/snack/__init__.py
index 599ce3f..31cb0f2 100644
--- a/DysonInstaller/snack/__init__.py
+++ b/DysonInstaller/snack/__init__.py
@@ -85,6 +85,10 @@ class ProgressBar(object):
def advance(self, i=1):
self.progress = self._progress + i
+ def reset(self):
+ self._progress = 0;
+ self._refresh()
+
def _refresh(self):
self._form.draw()
self._screen.refresh()