* examples/ARcue.py:

Fix a bug in the gtk example.
This commit is contained in:
Thomas Vander Stichele
2009-04-20 21:30:04 +00:00
parent 58a855c630
commit 1fc0c2bbdb
2 changed files with 7 additions and 1 deletions

View File

@@ -32,10 +32,11 @@ from morituri.image import image
from morituri.common import task, checksum
def gtkmain(runner, taskk):
runner = task.GtkProgressRunner()
runner.connect('stop', lambda _: gtk.main_quit())
window = gtk.Window()
window.add(progress)
window.add(runner)
window.show_all()
runner.run(taskk)