[SCM] morituri/master: * morituri/common/task.py: Add a __main__ example using DummyTask.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:08:47 UTC 2014


The following commit has been merged in the master branch:
commit 9905dbad75640a959d5b0976b0cede2836d816b8
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Apr 19 22:01:39 2009 +0000

    	* morituri/common/task.py:
    	  Add a __main__ example using DummyTask.

diff --git a/ChangeLog b/ChangeLog
index 459c414..47ca9b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-20  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+	* morituri/common/task.py:
+	  Add a __main__ example using DummyTask.
+
 2009-04-19  Thomas Vander Stichele  <thomas at apestaart dot org>
 
 	* 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)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list