From 9905dbad75640a959d5b0976b0cede2836d816b8 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 19 Apr 2009 22:01:39 +0000 Subject: [PATCH] * morituri/common/task.py: Add a __main__ example using DummyTask. --- ChangeLog | 5 +++++ morituri/common/task.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 459c414..47ca9b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-20 Thomas Vander Stichele + + * morituri/common/task.py: + Add a __main__ example using DummyTask. + 2009-04-19 Thomas Vander Stichele * morituri/common/task.py: diff --git a/morituri/common/task.py b/morituri/common/task.py index fd2ac6d..deb4b86 100644 --- a/morituri/common/task.py +++ b/morituri/common/task.py @@ -248,3 +248,7 @@ class GtkProgressRunner(gtk.VBox, TaskRunner): self._progress.set_fraction(value) +if __name__ == '__main__': + task = DummyTask() + runner = SyncRunner() + runner.run(task)