davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=592467c7bdf3df32621057a500bd4436648fe1b7

commit 592467c7bdf3df32621057a500bd4436648fe1b7
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Mon Jan 4 20:14:58 2016 +0100

    ethumb test: more correct global usage
---
 examples/ethumb/ethumb.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/examples/ethumb/ethumb.py b/examples/ethumb/ethumb.py
index ff71431..88344d9 100755
--- a/examples/ethumb/ethumb.py
+++ b/examples/ethumb/ethumb.py
@@ -64,6 +64,8 @@ start_time = 0.0
 
 
 def generate_cb(et, success):
+    global in_progress
+
     # thumbnail completed
     if success is True:
         # print out the result
@@ -76,6 +78,9 @@ def generate_cb(et, success):
 
 
 def start_thumb(label, params):
+    global in_progress
+    global start_time
+
     # setup ethumb params
     et.file = filename
     for name, val in params.items():
@@ -83,7 +88,6 @@ def start_thumb(label, params):
 
     # print test name and keep track of start time
     print(label)
-    global start_time
     start_time = time.time()
 
     # start the thumbnailing process

-- 


Reply via email to