aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary/test_slider.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-05 12:24:19 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-05 12:24:19 +0100
commitde01f76650c06b40b85444d8c4f75a85362c79f5 (patch)
treec758f93a83ef6c5205707b449d08acd15f3782c1 /examples/elementary/test_slider.py
parentA little review of the INSTALL file (diff)
downloadpython-efl-de01f76650c06b40b85444d8c4f75a85362c79f5.tar.gz
Evas: better define for EVAS_HINT_FILL/EXPAND
Also added the various tuple we always use, just for convenience. Use the new tuples in the elm examples
Diffstat (limited to 'examples/elementary/test_slider.py')
-rw-r--r--examples/elementary/test_slider.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/elementary/test_slider.py b/examples/elementary/test_slider.py
index ce715cd..e1d0ae1 100644
--- a/examples/elementary/test_slider.py
+++ b/examples/elementary/test_slider.py
@@ -4,7 +4,9 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL, EVAS_ASPECT_CONTROL_HORIZONTAL
+ EVAS_ASPECT_CONTROL_VERTICAL, EVAS_ASPECT_CONTROL_HORIZONTAL, \
+ EXPAND_BOTH, EXPAND_HORIZ, EXPAND_VERT, \
+ FILL_BOTH, FILL_HORIZ, FILL_VERT
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -14,12 +16,7 @@ from efl.elementary.list import List
from efl.elementary.icon import Icon
from efl.elementary.slider import Slider
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-EXPAND_VERT = 0.0, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
-FILL_VERT = 0.5, EVAS_HINT_FILL
+
ALIGN_CENTER = 0.5, 0.5
ZERO_WEIGHT = 0.0, 0.0