* morituri/common/task.py:

* morituri/common/taskgtk.py:
	  Split off GtkProgressRunner in separate module to not import gtk
	  everywhere.
	* examples/ARcalibrate.py:
	* examples/ARcue.py:
	* examples/gtkchecksum.py:
	* examples/trm.py:
	  Adapt.
This commit is contained in:
Thomas Vander Stichele
2009-05-03 10:20:22 +00:00
parent a47a2f2a5c
commit fc907f1953
7 changed files with 22 additions and 352 deletions

View File

@@ -29,10 +29,9 @@ gobject.threads_init()
import gtk
from morituri.image import image
from morituri.common import task, checksum, log
from morituri.common import task, taskgtk, checksum, log
def gtkmain(runner, taskk):
runner = task.GtkProgressRunner()
runner.connect('stop', lambda _: gtk.main_quit())
window = gtk.Window()
@@ -75,7 +74,7 @@ def main(argv):
runner = task.SyncRunner()
function = climain
elif options.runner == 'gtk':
runner = task.GtkProgressRunner()
runner = taskgtk.GtkProgressRunner()
function = gtkmain
cueImage.setup(runner)