aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-04-12 12:35:57 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-04-12 12:35:57 +0200
commit0190d16c05df5ef48351fadf9a294601aa082bf6 (patch)
tree560f1b796832df4ea630da49dda556fea929c37e /examples/elementary
parentUpdate TODO and INSTALL (diff)
downloadpython-efl-0190d16c05df5ef48351fadf9a294601aa082bf6.tar.gz
New 1.14 property: Evas.Image.orient
with a simple test
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_core_evas_objects.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/elementary/test_core_evas_objects.py b/examples/elementary/test_core_evas_objects.py
index b51431f..5172170 100644
--- a/examples/elementary/test_core_evas_objects.py
+++ b/examples/elementary/test_core_evas_objects.py
@@ -1,10 +1,15 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import Rectangle, Line, Text, Polygon
+import os
+from efl.evas import Rectangle, Line, Text, Polygon, FilledImage, \
+ EVAS_IMAGE_ORIENT_180
from efl import elementary
from efl.elementary.window import StandardWindow
+img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
+ic_file = os.path.join(img_path, "logo.png")
+
def events_cb1(rect, event_name):
print(event_name + " No data for event")
@@ -33,6 +38,10 @@ def core_evas_objects_clicked(obj, item=None):
poly.point_add(20,30)
poly.show()
+ image = FilledImage(win.evas, file=ic_file, size=(50,70), pos=(120,70))
+ image.orient = EVAS_IMAGE_ORIENT_180
+ image.show()
+
win.resize(320, 320)
win.show()