* examples/ARcue.py:
Fix a bug in the gtk example.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-04-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* examples/ARcue.py:
|
||||||
|
Fix a bug in the gtk example.
|
||||||
|
|
||||||
2009-04-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
2009-04-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* examples/readtoc.py:
|
* examples/readtoc.py:
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ from morituri.image import image
|
|||||||
from morituri.common import task, checksum
|
from morituri.common import task, checksum
|
||||||
|
|
||||||
def gtkmain(runner, taskk):
|
def gtkmain(runner, taskk):
|
||||||
|
runner = task.GtkProgressRunner()
|
||||||
runner.connect('stop', lambda _: gtk.main_quit())
|
runner.connect('stop', lambda _: gtk.main_quit())
|
||||||
|
|
||||||
window = gtk.Window()
|
window = gtk.Window()
|
||||||
window.add(progress)
|
window.add(runner)
|
||||||
window.show_all()
|
window.show_all()
|
||||||
|
|
||||||
runner.run(taskk)
|
runner.run(taskk)
|
||||||
|
|||||||
Reference in New Issue
Block a user