aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary/test_tooltip.py
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-01-06 14:36:49 +0100
committerdavemds <dave@gurumeditation.it>2014-01-06 14:36:49 +0100
commit44a5dd89c09105703fff1b200148d8401ebee8a4 (patch)
treebfab1b31dcb1641e5dc668a60b6865e529b0c5ac /examples/elementary/test_tooltip.py
parentTry to fix evas SmartObject (diff)
downloadpython-efl-44a5dd89c09105703fff1b200148d8401ebee8a4.tar.gz
fix imports in elm tooltip example
Diffstat (limited to 'examples/elementary/test_tooltip.py')
-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")