aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-01-06 14:36:49 +0100
committerdavemds <dave@gurumeditation.it>2014-01-06 14:37:16 +0100
commit763a5913610b1d894c2f60b12fe4197c583af19d (patch)
treef611dd89b692583472084d99e1503df1867e5b6b
parentTry to fix evas SmartObject (diff)
downloadpython-efl-763a5913610b1d894c2f60b12fe4197c583af19d.tar.gz
fix imports in elm tooltip example
-rw-r--r--examples/elementary/test_tooltip.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/elementary/test_tooltip.py b/examples/elementary/test_tooltip.py
index 65f4c3b..97078ae 100644
--- a/examples/elementary/test_tooltip.py
+++ b/examples/elementary/test_tooltip.py
@@ -4,7 +4,7 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
-from efl.ecore import Timer
+from efl.ecore import Timer, timer_add
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -126,8 +126,7 @@ def tooltip_clicked(obj):
del data["timer"]
obj.text_set("Icon tooltip, click to start changed timed")
return
- data["timer"] = ecore.timer_add(1.5, _tt_icon_replace_timer_cb, obj,
- data)
+ data["timer"] = timer_add(1.5, _tt_icon_replace_timer_cb, obj, data)
obj.text_set("Icon tooltip, click to stop changed timed")
bt = Button(win, text="Icon tooltip, click to start changed timed")
@@ -160,8 +159,7 @@ def tooltip_clicked(obj):
del data["timer"]
obj.text_set("Icon tooltip style, click to start changed timed")
return
- data["timer"] = ecore.timer_add(1.5, _tt_style_replace_timer_cb, obj,
- data)
+ data["timer"] = timer_add(1.5, _tt_style_replace_timer_cb, obj, data)
obj.text_set("Icon tooltip, click to stop changed timed")
bt = Button(win, text="Icon tooltip style, click to start changed timed")