aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-09 19:36:42 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-09 19:36:42 +0200
commitfbc22d850d600bcae4e145f81e2ce6c7c3b02d46 (patch)
tree20fbd6d62d614b4e4dff081e6ad9bfa4579d9b12 /examples/elementary
parentEvas.SmartObject: Move documentation to right places (diff)
downloadpython-efl-fbc22d850d600bcae4e145f81e2ce6c7c3b02d46.tar.gz
Make Evas.SO iterator a generic Eo iterator and move to efl.eo
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_core_evas_smart.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/elementary/test_core_evas_smart.py b/examples/elementary/test_core_evas_smart.py
index ea5e410..2137f51 100644
--- a/examples/elementary/test_core_evas_smart.py
+++ b/examples/elementary/test_core_evas_smart.py
@@ -4,6 +4,7 @@
import os
from random import randint
+from efl.eo import Eo
from efl.evas import SmartObject, Smart, EXPAND_BOTH, FILL_BOTH, Rectangle, \
Line, FilledImage, Polygon, Text
from efl import elementary
@@ -54,13 +55,13 @@ class MySmart(Smart):
@staticmethod
def show(smart_object):
print("my show")
- for o in smart_object.members:
+ for o in smart_object:
o.show()
@staticmethod
def hide(smart_object):
print("my hide")
- for o in smart_object.members:
+ for o in smart_object:
o.hide()
@staticmethod