* morituri/common/task.py:

clear with whitespace.
This commit is contained in:
Thomas Vander Stichele
2009-04-11 21:57:25 +00:00
parent 51851cc67e
commit 6804df4b73
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2009-04-11 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:
clear with whitespace.
2009-04-11 Thomas Vander Stichele <thomas at apestaart dot org>
* examples/ARcue.py:

View File

@@ -138,6 +138,11 @@ class SyncRunner(TaskRunner):
if self._skip:
sys.stdout.write('%s %3d %%\n' % (
self._task.description, 100.0))
else:
# clear with whitespace
text = '%s %3d %%' % (
self._task.description, 100.0)
sys.stdout.write("%s\r" % (' ' * len(text), ))
def stopped(self, task):
self._loop.quit()