aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-04 20:14:58 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-04 20:14:58 +0100
commit592467c7bdf3df32621057a500bd4436648fe1b7 (patch)
tree72b37af20d2dd84e7ab89d02974bfa191bb2cb6a /examples
parentForgot since 1.17 in last commits (diff)
downloadpython-efl-592467c7bdf3df32621057a500bd4436648fe1b7.tar.gz
ethumb test: more correct global usage
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/ethumb/ethumb.py6
1 files changed, 5 insertions, 1 deletions
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