summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-04-12 14:01:49 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-04-12 14:01:49 +0200
commit0f0e84d7925c74a30ab00bad31cbf2e2b83ade6a (patch)
tree1fd23eeb3f1029406171df4c0e00afa0b391aff1
parente9f07ff5373e744bf0fe71baa6809641e55531e7 (diff)
Test Elm.Image: use new EVAS_ORIENT_* enums
-rw-r--r--efl/evas/efl.evas.pyx2
-rw-r--r--examples/elementary/test_image.py24
2 files changed, 15 insertions, 11 deletions
diff --git a/efl/evas/efl.evas.pyx b/efl/evas/efl.evas.pyx
index 747daf5..2433e28 100644
--- a/efl/evas/efl.evas.pyx
+++ b/efl/evas/efl.evas.pyx
@@ -673,6 +673,8 @@ Evas_Image_Animated_Loop_Hint
673Evas_Image_Orient 673Evas_Image_Orient
674------------------------------------- 674-------------------------------------
675 675
676.. versionadded:: 1.14
677
676.. data:: EVAS_IMAGE_ORIENT_NONE 678.. data:: EVAS_IMAGE_ORIENT_NONE
677 679
678 No orientation change 680 No orientation change
diff --git a/examples/elementary/test_image.py b/examples/elementary/test_image.py
index 4203c40..ece1949 100644
--- a/examples/elementary/test_image.py
+++ b/examples/elementary/test_image.py
@@ -3,14 +3,15 @@
3 3
4import os 4import os
5 5
6from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH 6from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
7 EVAS_IMAGE_ORIENT_0,EVAS_IMAGE_ORIENT_90, EVAS_IMAGE_ORIENT_180, \
8 EVAS_IMAGE_ORIENT_270, EVAS_IMAGE_FLIP_HORIZONTAL, EVAS_IMAGE_FLIP_VERTICAL, \
9 EVAS_IMAGE_FLIP_TRANSPOSE, EVAS_IMAGE_FLIP_TRANSVERSE
7from efl import elementary 10from efl import elementary
8from efl.elementary.window import StandardWindow 11from efl.elementary.window import StandardWindow
9from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL 12from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
10from efl.elementary.button import Button 13from efl.elementary.button import Button
11from efl.elementary.image import Image, ELM_IMAGE_ROTATE_90, \ 14from efl.elementary.image import Image
12 ELM_IMAGE_ROTATE_180, ELM_IMAGE_ROTATE_270, ELM_IMAGE_FLIP_HORIZONTAL, \
13 ELM_IMAGE_FLIP_VERTICAL, ELM_IMAGE_FLIP_TRANSPOSE, ELM_IMAGE_FLIP_TRANSVERSE
14from efl.elementary.progressbar import Progressbar 15from efl.elementary.progressbar import Progressbar
15from efl.elementary.separator import Separator 16from efl.elementary.separator import Separator
16from efl.elementary.label import Label 17from efl.elementary.label import Label
@@ -22,13 +23,14 @@ script_path = os.path.dirname(os.path.abspath(__file__))
22img_path = os.path.join(script_path, "images") 23img_path = os.path.join(script_path, "images")
23 24
24orients = [ 25orients = [
25 ("Rotate 90", ELM_IMAGE_ROTATE_90), 26 ("Orient 0", EVAS_IMAGE_ORIENT_0),
26 ("Rotate 180", ELM_IMAGE_ROTATE_180), 27 ("Orient 90", EVAS_IMAGE_ORIENT_90),
27 ("Rotate 270", ELM_IMAGE_ROTATE_270), 28 ("Orient 180", EVAS_IMAGE_ORIENT_180),
28 ("Flip Horizontal", ELM_IMAGE_FLIP_HORIZONTAL), 29 ("Orient 270", EVAS_IMAGE_ORIENT_270),
29 ("Flip Vertical", ELM_IMAGE_FLIP_VERTICAL), 30 ("Flip Horizontal", EVAS_IMAGE_FLIP_HORIZONTAL),
30 ("Flip Transpose", ELM_IMAGE_FLIP_TRANSPOSE), 31 ("Flip Vertical", EVAS_IMAGE_FLIP_VERTICAL),
31 ("Flip Tranverse", ELM_IMAGE_FLIP_TRANSVERSE), 32 ("Flip Transpose", EVAS_IMAGE_FLIP_TRANSPOSE),
33 ("Flip Tranverse", EVAS_IMAGE_FLIP_TRANSVERSE),
32] 34]
33 35
34remote_url = "http://31.media.tumblr.com/29f1ecd4f98aaff73fb21f479b450d4c/tumblr_mqsxdciQmB1rrju89o1_1280.jpg" 36remote_url = "http://31.media.tumblr.com/29f1ecd4f98aaff73fb21f479b450d4c/tumblr_mqsxdciQmB1rrju89o1_1280.jpg"