davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=18e2d9c102dd6ee8251eb643105ea888a6b93ae1
commit 18e2d9c102dd6ee8251eb643105ea888a6b93ae1 Author: Dave Andreoli <[email protected]> Date: Sun Feb 26 22:54:18 2017 +0100 Make the new image test py2 compat --- examples/elementary/test_image_async.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/elementary/test_image_async.py b/examples/elementary/test_image_async.py index 016f5dd..a58defd 100644 --- a/examples/elementary/test_image_async.py +++ b/examples/elementary/test_image_async.py @@ -12,6 +12,8 @@ script_path = os.path.dirname(os.path.abspath(__file__)) img_path = os.path.join(script_path, "images") img_file = os.path.join(img_path, "insanely_huge_test_image.jpg") +def image_load_cb(img, signal): + print("Signal: %s" % signal) def create_image(win): box = win.data["box"] @@ -30,10 +32,10 @@ def create_image(win): box.pack_start(im) win.data["image"] = im - im.callback_load_open_add(lambda i: print("load,open")) - im.callback_load_ready_add(lambda i: print("load,ready")) - im.callback_load_error_add(lambda i: print("load,error")) - im.callback_load_cancel_add(lambda i: print("load,cancel")) + im.callback_load_open_add(image_load_cb, "load,open") + im.callback_load_ready_add(image_load_cb, "load,ready") + im.callback_load_error_add(image_load_cb, "load,error") + im.callback_load_cancel_add(image_load_cb, "load,cancel") im.show() im.file = img_file --
