aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary/test_external.py
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-11-11 06:32:08 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2013-11-19 21:21:03 +0200
commit738a377a78d7ec91eb8e39b3cbcb0bf85505ca3f (patch)
tree8b412afe0535f63f614a2f133b7854c6e6eb7473 /examples/elementary/test_external.py
parentPythonEFL: new elm test for Theme (diff)
downloadpython-efl-738a377a78d7ec91eb8e39b3cbcb0bf85505ca3f.tar.gz
Elementary: Fix a couple of issues in edje external examples.
Include the source file too. It would be best to get rid of the binary edje file and automate compiling/cleaning it.
Diffstat (limited to 'examples/elementary/test_external.py')
-rw-r--r--examples/elementary/test_external.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/elementary/test_external.py b/examples/elementary/test_external.py
index d3f8855..e09d616 100644
--- a/examples/elementary/test_external.py
+++ b/examples/elementary/test_external.py
@@ -38,17 +38,18 @@ def edje_external_button_clicked(obj, item=None):
win.show()
def animate(ly):
- val = ly.edje_get().part_external_object_get("ext_pbar1").value
+ val = ly.edje.part_external_object_get("ext_pbar1").value
val += 0.0123
for part_name in ["ext_pbar1", "ext_pbar3", "ext_pbar4", "ext_pbar6"]:
- ly.edje_get().part_external_object_get(part_name).value = val
+ ly.edje.part_external_object_get(part_name).value = val
if val < 1:
Timer(0.1, animate, ly)
else:
for part_name in ["ext_pbar2", "ext_pbar5", "ext_pbar7"]:
- ly.edje_get().part_external_object_get(part_name).pulse(False)
+ ly.edje.part_external_object_get(part_name).pulse(False)
+ ly.edje.part_external_object_get(part_name).pulse_mode = False
for part_name in ["ext_button1", "ext_button2", "ext_button3"]:
ly.edje_get().part_external_object_get(part_name).disabled = False
@@ -58,7 +59,8 @@ def cb_btn3_clicked(bt, ly):
ly.edje.part_external_object_get("ext_pbar1").value = 0.0
for part_name in ["ext_pbar2", "ext_pbar5", "ext_pbar7"]:
- ly.edje_get().part_external_object_get(part_name).pulse(True)
+ ly.edje.part_external_object_get(part_name).pulse_mode = True
+ ly.edje.part_external_object_get(part_name).pulse(True)
for part_name in ["ext_button1", "ext_button2", "ext_button3"]:
ly.edje_get().part_external_object_get(part_name).disabled = True