aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
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
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')
-rwxr-xr-xexamples/elementary/test.py4
-rw-r--r--examples/elementary/test_3d.py6
-rw-r--r--examples/elementary/test_access.py4
-rw-r--r--examples/elementary/test_actionslider.py6
-rw-r--r--examples/elementary/test_bg.py4
-rw-r--r--examples/elementary/test_box.py4
-rw-r--r--examples/elementary/test_bubble.py4
-rw-r--r--examples/elementary/test_button.py3
-rw-r--r--examples/elementary/test_calendar.py4
-rw-r--r--examples/elementary/test_check.py5
-rw-r--r--examples/elementary/test_clock.py3
-rw-r--r--examples/elementary/test_cnp.py5
-rw-r--r--examples/elementary/test_colorselector.py6
-rw-r--r--examples/elementary/test_config.py12
-rw-r--r--examples/elementary/test_conform.py7
-rw-r--r--examples/elementary/test_core_evas_canvas_callbacks.py4
-rw-r--r--examples/elementary/test_core_evas_object_callbacks.py4
-rw-r--r--examples/elementary/test_core_evas_smart.py5
-rw-r--r--examples/elementary/test_ctxpopup.py5
-rw-r--r--examples/elementary/test_cursor.py7
-rw-r--r--examples/elementary/test_datetime.py6
-rw-r--r--examples/elementary/test_dayselector.py6
-rw-r--r--examples/elementary/test_diskselector.py6
-rw-r--r--examples/elementary/test_dnd.py4
-rw-r--r--examples/elementary/test_entry.py7
-rw-r--r--examples/elementary/test_external.py4
-rw-r--r--examples/elementary/test_fileselector.py5
-rw-r--r--examples/elementary/test_fileselector_button.py4
-rw-r--r--examples/elementary/test_fileselector_entry.py5
-rw-r--r--examples/elementary/test_flip.py6
-rw-r--r--examples/elementary/test_flipselector.py4
-rw-r--r--examples/elementary/test_floating.py4
-rw-r--r--examples/elementary/test_focus.py7
-rw-r--r--examples/elementary/test_frame.py4
-rw-r--r--examples/elementary/test_gengrid.py7
-rw-r--r--examples/elementary/test_genlist.py5
-rw-r--r--examples/elementary/test_gesture_layer.py5
-rw-r--r--examples/elementary/test_grid.py3
-rw-r--r--examples/elementary/test_hover.py4
-rw-r--r--examples/elementary/test_hoversel.py3
-rw-r--r--examples/elementary/test_icon.py7
-rw-r--r--examples/elementary/test_image.py4
-rw-r--r--examples/elementary/test_index.py6
-rw-r--r--examples/elementary/test_input_events.py4
-rw-r--r--examples/elementary/test_label.py7
-rw-r--r--examples/elementary/test_layout.py3
-rw-r--r--examples/elementary/test_list.py7
-rw-r--r--examples/elementary/test_map.py8
-rw-r--r--examples/elementary/test_mapbuf.py7
-rw-r--r--examples/elementary/test_menu.py4
-rw-r--r--examples/elementary/test_multibuttonentry.py7
-rw-r--r--examples/elementary/test_naviframe.py4
-rw-r--r--examples/elementary/test_notify.py4
-rw-r--r--examples/elementary/test_panel.py6
-rw-r--r--examples/elementary/test_panel_scroll.py7
-rw-r--r--examples/elementary/test_panes.py4
-rw-r--r--examples/elementary/test_photo.py7
-rw-r--r--examples/elementary/test_photocam.py5
-rw-r--r--examples/elementary/test_popup.py5
-rw-r--r--examples/elementary/test_progressbar.py6
-rw-r--r--examples/elementary/test_radio.py5
-rw-r--r--examples/elementary/test_scroller.py7
-rw-r--r--examples/elementary/test_segment_control.py7
-rw-r--r--examples/elementary/test_separator.py3
-rw-r--r--examples/elementary/test_slider.py11
-rw-r--r--examples/elementary/test_slideshow.py7
-rw-r--r--examples/elementary/test_spinner.py7
-rw-r--r--examples/elementary/test_sys_notify.py8
-rw-r--r--examples/elementary/test_table.py6
-rw-r--r--examples/elementary/test_thumb.py4
-rw-r--r--examples/elementary/test_toolbar.py4
-rw-r--r--examples/elementary/test_tooltip.py7
-rw-r--r--examples/elementary/test_transit.py4
-rw-r--r--examples/elementary/test_video.py4
-rw-r--r--examples/elementary/test_web.py8
-rw-r--r--examples/elementary/test_win.py7
-rw-r--r--examples/elementary/test_win_dialog.py4
77 files changed, 123 insertions, 293 deletions
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index 777f4e1..46a110d 100755
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -19,7 +19,7 @@ eolog.setLevel(logging.INFO)
evaslog = logging.getLogger("efl.evas")
evaslog.setLevel(logging.INFO)
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
@@ -35,8 +35,6 @@ elm_conf = Configuration()
elog.setLevel(logging.DEBUG)
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
items = [
("Core Libs", [
diff --git a/examples/elementary/test_3d.py b/examples/elementary/test_3d.py
index 934a08c..2e7b303 100644
--- a/examples/elementary/test_3d.py
+++ b/examples/elementary/test_3d.py
@@ -3,15 +3,13 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Image, Map
+from efl.evas import Image, Map, EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.slider import Slider
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "rock_02.jpg")
diff --git a/examples/elementary/test_access.py b/examples/elementary/test_access.py
index 1ca0b15..88b3e90 100644
--- a/examples/elementary/test_access.py
+++ b/examples/elementary/test_access.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND, \
+from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND, EXPAND_BOTH, FILL_BOTH, \
EVAS_ASPECT_CONTROL_VERTICAL
from efl import elementary
from efl.elementary.window import StandardWindow
@@ -19,8 +19,6 @@ from efl.elementary.label import Label
from efl.elementary.list import List
from efl.elementary.icon import Icon
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
config = Configuration()
diff --git a/examples/elementary/test_actionslider.py b/examples/elementary/test_actionslider.py
index 8ba45da..5a9a0cf 100644
--- a/examples/elementary/test_actionslider.py
+++ b/examples/elementary/test_actionslider.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, EXPAND_HORIZ, FILL_BOTH
from efl import elementary
from efl.elementary.actionslider import Actionslider, ELM_ACTIONSLIDER_NONE, \
ELM_ACTIONSLIDER_ALL, ELM_ACTIONSLIDER_LEFT, ELM_ACTIONSLIDER_CENTER, \
@@ -9,9 +10,6 @@ from efl.elementary.actionslider import Actionslider, ELM_ACTIONSLIDER_NONE, \
from efl.elementary.box import Box
from efl.elementary.window import StandardWindow
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
positions = {
ELM_ACTIONSLIDER_NONE: "none",
diff --git a/examples/elementary/test_bg.py b/examples/elementary/test_bg.py
index 3167726..35e5962 100644
--- a/examples/elementary/test_bg.py
+++ b/examples/elementary/test_bg.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow, Window, ELM_WIN_BASIC
from efl.elementary.background import Background, ELM_BG_OPTION_SCALE
@@ -12,8 +12,6 @@ from efl.elementary.frame import Frame
from efl.elementary.label import Label
from efl.elementary.list import List
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "plant_01.jpg")
diff --git a/examples/elementary/test_box.py b/examples/elementary/test_box.py
index 9f0ea30..dfc9048 100644
--- a/examples/elementary/test_box.py
+++ b/examples/elementary/test_box.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box, ELM_BOX_LAYOUT_HORIZONTAL
@@ -14,8 +14,6 @@ from efl.elementary.list import List
from efl.elementary.icon import Icon
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "logo_small.png")
diff --git a/examples/elementary/test_bubble.py b/examples/elementary/test_bubble.py
index 89fec4b..35c5b0a 100644
--- a/examples/elementary/test_bubble.py
+++ b/examples/elementary/test_bubble.py
@@ -4,7 +4,7 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL
+ EVAS_ASPECT_CONTROL_VERTICAL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -16,8 +16,6 @@ from efl.elementary.bubble import Bubble, ELM_BUBBLE_POS_TOP_LEFT, \
ELM_BUBBLE_POS_TOP_RIGHT, ELM_BUBBLE_POS_BOTTOM_LEFT, \
ELM_BUBBLE_POS_BOTTOM_RIGHT
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "logo_small.png")
diff --git a/examples/elementary/test_button.py b/examples/elementary/test_button.py
index 7e719fc..c2c0536 100644
--- a/examples/elementary/test_button.py
+++ b/examples/elementary/test_button.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_ASPECT_CONTROL_VERTICAL
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH,EVAS_ASPECT_CONTROL_VERTICAL
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -11,7 +11,6 @@ from efl.elementary.frame import Frame
from efl.elementary.icon import Icon
from efl.elementary.button import Button
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "logo_small.png")
diff --git a/examples/elementary/test_calendar.py b/examples/elementary/test_calendar.py
index f976d01..6727b79 100644
--- a/examples/elementary/test_calendar.py
+++ b/examples/elementary/test_calendar.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -18,8 +18,6 @@ from efl.elementary.entry import Entry
from datetime import datetime, timedelta
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
api = {
"state" : 0, # What state we are testing
diff --git a/examples/elementary/test_check.py b/examples/elementary/test_check.py
index e172134..5b54b7e 100644
--- a/examples/elementary/test_check.py
+++ b/examples/elementary/test_check.py
@@ -4,16 +4,13 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL
+ EVAS_ASPECT_CONTROL_VERTICAL, EXPAND_BOTH, FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.icon import Icon
from efl.elementary.check import Check
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
img_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "images")
ic_file = os.path.join(img_path, "logo_small.png")
diff --git a/examples/elementary/test_clock.py b/examples/elementary/test_clock.py
index a1425f1..7361ffa 100644
--- a/examples/elementary/test_clock.py
+++ b/examples/elementary/test_clock.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,7 +9,6 @@ from efl.elementary.check import Check
from efl.elementary.clock import Clock, ELM_CLOCK_EDIT_HOUR_DECIMAL, \
ELM_CLOCK_EDIT_MIN_DECIMAL, ELM_CLOCK_EDIT_SEC_DECIMAL
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
def pause_changed_cb(ck, widgets):
for w in widgets:
diff --git a/examples/elementary/test_cnp.py b/examples/elementary/test_cnp.py
index 3aa7533..01ee024 100644
--- a/examples/elementary/test_cnp.py
+++ b/examples/elementary/test_cnp.py
@@ -1,6 +1,5 @@
from efl import elementary
-from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND
-
+from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND, EXPAND_BOTH, FILL_BOTH
from efl.elementary.window import StandardWindow
from efl.elementary.label import Label
from efl.elementary.entry import Entry, ELM_WRAP_CHAR
@@ -8,8 +7,6 @@ from efl.elementary.grid import Grid
from efl.elementary.button import Button
from efl.elementary.object import ELM_SEL_TYPE_CLIPBOARD, ELM_SEL_FORMAT_TEXT
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def bt_copy_clicked(obj, data):
en = data
diff --git a/examples/elementary/test_colorselector.py b/examples/elementary/test_colorselector.py
index becc14c..ef03bf9 100644
--- a/examples/elementary/test_colorselector.py
+++ b/examples/elementary/test_colorselector.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -11,9 +12,6 @@ from efl.elementary.colorselector import Colorselector, \
ELM_COLORSELECTOR_PALETTE, ELM_COLORSELECTOR_COMPONENTS, \
ELM_COLORSELECTOR_BOTH
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
FILL_AND_ALIGN_TOP = EVAS_HINT_FILL, 0.0
def cb_cs_changed(cs, rect):
diff --git a/examples/elementary/test_config.py b/examples/elementary/test_config.py
index 43f6092..40df48e 100644
--- a/examples/elementary/test_config.py
+++ b/examples/elementary/test_config.py
@@ -3,9 +3,11 @@
import os
+from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND, EXPAND_BOTH, \
+ EXPAND_HORIZ, FILL_BOTH, FILL_HORIZ
from efl import elementary
-from efl.elementary.window import StandardWindow, Window, ELM_WIN_INLINED_IMAGE, \
- ELM_WIN_SOCKET_IMAGE
+from efl.elementary.window import StandardWindow, Window, \
+ ELM_WIN_INLINED_IMAGE, ELM_WIN_SOCKET_IMAGE
from efl.elementary.button import Button
from efl.elementary.background import Background
from efl.elementary.label import Label
@@ -20,12 +22,8 @@ from efl.elementary.layout import Layout
from efl.elementary.configuration import Configuration
elm_conf = Configuration()
-from efl.evas import EVAS_HINT_FILL, EVAS_HINT_EXPAND
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
+
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_conform.py b/examples/elementary/test_conform.py
index cef9a12..bd1f7ad 100644
--- a/examples/elementary/test_conform.py
+++ b/examples/elementary/test_conform.py
@@ -13,12 +13,9 @@ from efl.elementary.label import Label
from efl.elementary.list import List
from efl.elementary.scroller import Scrollable
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, \
+ EXPAND_HORIZ, FILL_BOTH, FILL_HORIZ
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
class ScrollableEntry(Scrollable, Entry):
def __init__(self, canvas, *args, **kwargs):
diff --git a/examples/elementary/test_core_evas_canvas_callbacks.py b/examples/elementary/test_core_evas_canvas_callbacks.py
index 8a1f5c8..bf78f80 100644
--- a/examples/elementary/test_core_evas_canvas_callbacks.py
+++ b/examples/elementary/test_core_evas_canvas_callbacks.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
EVAS_CALLBACK_RENDER_PRE, EVAS_CALLBACK_RENDER_POST, \
EVAS_CALLBACK_CANVAS_FOCUS_IN, EVAS_CALLBACK_CANVAS_FOCUS_OUT, \
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN, \
@@ -19,8 +19,6 @@ from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.button import Button
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def btn_del_cbs_cb(button):
canvas = button.evas_get()
diff --git a/examples/elementary/test_core_evas_object_callbacks.py b/examples/elementary/test_core_evas_object_callbacks.py
index 5d2a1f8..9961500 100644
--- a/examples/elementary/test_core_evas_object_callbacks.py
+++ b/examples/elementary/test_core_evas_object_callbacks.py
@@ -13,14 +13,12 @@ from efl.evas import EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_OUT, \
EVAS_CALLBACK_DEL, EVAS_CALLBACK_HOLD, \
EVAS_CALLBACK_CHANGED_SIZE_HINTS, \
EVAS_CALLBACK_IMAGE_PRELOADED, EVAS_CALLBACK_IMAGE_UNLOADED, \
- Text, Rectangle, EVAS_HINT_EXPAND, EVAS_HINT_FILL
+ Text, Rectangle, EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.button import Button
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def btn_del_cbs_cb(button, rect):
rect.event_callback_del(EVAS_CALLBACK_MOUSE_IN, events_cb2)
diff --git a/examples/elementary/test_core_evas_smart.py b/examples/elementary/test_core_evas_smart.py
index 8c8574e..5c733c9 100644
--- a/examples/elementary/test_core_evas_smart.py
+++ b/examples/elementary/test_core_evas_smart.py
@@ -4,14 +4,13 @@
import os
from random import randint
-from efl.evas import SmartObject, EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import SmartObject, EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.button import Button
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
ic_file = os.path.join(script_path, "images", "logo.png")
diff --git a/examples/elementary/test_ctxpopup.py b/examples/elementary/test_ctxpopup.py
index af874a0..a945651 100644
--- a/examples/elementary/test_ctxpopup.py
+++ b/examples/elementary/test_ctxpopup.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, FilledImage
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, FilledImage, \
+ EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -13,8 +14,6 @@ from efl.elementary.list import List, ELM_LIST_COMPRESS
from efl.elementary.ctxpopup import Ctxpopup
from efl.elementary.scroller import Scroller
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_cursor.py b/examples/elementary/test_cursor.py
index 2471d45..a079392 100644
--- a/examples/elementary/test_cursor.py
+++ b/examples/elementary/test_cursor.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -17,10 +18,6 @@ from efl.elementary.toolbar import Toolbar
from efl.elementary.theme import Theme
from efl.elementary.configuration import Configuration
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
diff --git a/examples/elementary/test_datetime.py b/examples/elementary/test_datetime.py
index faba10a..ddaa6c3 100644
--- a/examples/elementary/test_datetime.py
+++ b/examples/elementary/test_datetime.py
@@ -2,7 +2,8 @@
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, \
+ FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -13,9 +14,6 @@ from efl.elementary.datetime_elm import Datetime, ELM_DATETIME_MINUTE, \
from datetime import datetime
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
def changed_cb(obj):
print("Datetime value is changed")
diff --git a/examples/elementary/test_dayselector.py b/examples/elementary/test_dayselector.py
index 45b1a9e..877d500 100644
--- a/examples/elementary/test_dayselector.py
+++ b/examples/elementary/test_dayselector.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, \
+ FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -16,9 +17,6 @@ from efl.elementary.dayselector import Dayselector, ELM_DAYSELECTOR_SUN, \
ELM_DAYSELECTOR_MON, ELM_DAYSELECTOR_TUE, ELM_DAYSELECTOR_WED, \
ELM_DAYSELECTOR_THU, ELM_DAYSELECTOR_FRI, ELM_DAYSELECTOR_SAT
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
def cb_changed(ds):
print("\nSelected Days:")
diff --git a/examples/elementary/test_diskselector.py b/examples/elementary/test_diskselector.py
index b068301..a2e4bea 100644
--- a/examples/elementary/test_diskselector.py
+++ b/examples/elementary/test_diskselector.py
@@ -3,16 +3,14 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, \
+ FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.icon import Icon
from efl.elementary.diskselector import Diskselector
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
months=["January", "February", "March", "April", "May", "June", "August", "September", "October", "November", "December"]
weekdays=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
diff --git a/examples/elementary/test_dnd.py b/examples/elementary/test_dnd.py
index 8545d2b..4c33e9c 100644
--- a/examples/elementary/test_dnd.py
+++ b/examples/elementary/test_dnd.py
@@ -5,7 +5,7 @@ import os
from efl.ecore import Timer, ECORE_CALLBACK_CANCEL, ECORE_CALLBACK_RENEW, \
AnimatorTimeline
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
EVAS_ASPECT_CONTROL_VERTICAL, EVAS_CALLBACK_MOUSE_MOVE, \
EVAS_CALLBACK_MOUSE_UP, EVAS_CALLBACK_MOUSE_DOWN, \
EVAS_EVENT_FLAG_ON_HOLD
@@ -22,8 +22,6 @@ from efl.elementary.gengrid import Gengrid, GengridItemClass
from efl.elementary.configuration import Configuration
conf = Configuration()
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index 44fe8aa..1070f15 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
+ EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -17,10 +18,6 @@ from efl.elementary.icon import Icon
from efl.elementary.scroller import Scrollable, ELM_SCROLLER_POLICY_OFF, \
ELM_SCROLLER_POLICY_ON
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
SCROLL_POLICY_OFF = ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF
SCROLL_POLICY_ON = ELM_SCROLLER_POLICY_ON, ELM_SCROLLER_POLICY_ON
diff --git a/examples/elementary/test_external.py b/examples/elementary/test_external.py
index e09d616..e575ed7 100644
--- a/examples/elementary/test_external.py
+++ b/examples/elementary/test_external.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl.ecore import Timer
from efl import edje
from efl import elementary
@@ -16,8 +16,6 @@ from efl.elementary.frame import Frame
from efl.elementary.label import Label
from efl.elementary.list import List
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_fileselector.py b/examples/elementary/test_fileselector.py
index 157594d..50840f6 100644
--- a/examples/elementary/test_fileselector.py
+++ b/examples/elementary/test_fileselector.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
@@ -23,9 +23,6 @@ from efl.elementary.fileselector import Fileselector, \
ELM_FILESELECTOR_SORT_BY_MODIFIED_ASC, ELM_FILESELECTOR_SORT_BY_MODIFIED_DESC
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-
def fs_cb_done(fs, selected, win):
win.delete()
diff --git a/examples/elementary/test_fileselector_button.py b/examples/elementary/test_fileselector_button.py
index ed26a8f..99cb192 100644
--- a/examples/elementary/test_fileselector_button.py
+++ b/examples/elementary/test_fileselector_button.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,8 +9,6 @@ from efl.elementary.check import Check
from efl.elementary.fileselector_button import FileselectorButton
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def toggle_is_save(bt, fsb):
print("Toggle is save")
diff --git a/examples/elementary/test_fileselector_entry.py b/examples/elementary/test_fileselector_entry.py
index 6098139..4c4b5db 100644
--- a/examples/elementary/test_fileselector_entry.py
+++ b/examples/elementary/test_fileselector_entry.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,9 +9,6 @@ from efl.elementary.check import Check
from efl.elementary.fileselector_entry import FileselectorEntry
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-
def toggle_is_save(bt, fse):
print("Toggle is save")
diff --git a/examples/elementary/test_flip.py b/examples/elementary/test_flip.py
index 63cd52e..6501b6a 100644
--- a/examples/elementary/test_flip.py
+++ b/examples/elementary/test_flip.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, \
+ FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -24,9 +25,6 @@ from efl.elementary.flip import Flip, ELM_FLIP_ROTATE_X_CENTER_AXIS, \
ELM_FLIP_INTERACTION_NONE, ELM_FLIP_INTERACTION_ROTATE, \
ELM_FLIP_INTERACTION_CUBE, ELM_FLIP_INTERACTION_PAGE
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_flipselector.py b/examples/elementary/test_flipselector.py
index 132571b..5c66e79 100644
--- a/examples/elementary/test_flipselector.py
+++ b/examples/elementary/test_flipselector.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,8 +9,6 @@ from efl.elementary.button import Button
from efl.elementary.slider import Slider
from efl.elementary.flipselector import FlipSelector
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def sel_cb(fp, *args):
if args:
diff --git a/examples/elementary/test_floating.py b/examples/elementary/test_floating.py
index aa1abc3..1be0d64 100644
--- a/examples/elementary/test_floating.py
+++ b/examples/elementary/test_floating.py
@@ -11,10 +11,8 @@ from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass, \
from efl.elementary.icon import Icon
from efl.ecore import Animator, loop_time_get
from efl.evas import EVAS_ASPECT_CONTROL_VERTICAL, EVAS_HINT_EXPAND, \
- EVAS_HINT_FILL
+ EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_focus.py b/examples/elementary/test_focus.py
index 9856a64..ef26098 100644
--- a/examples/elementary/test_focus.py
+++ b/examples/elementary/test_focus.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl import edje
from efl.elementary.window import StandardWindow
@@ -25,10 +26,6 @@ from efl.elementary.object import ELM_FOCUS_DOWN, ELM_FOCUS_UP
from efl.elementary.configuration import Configuration
from efl.elementary.theme import theme_overlay_add
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
edj_file = os.path.join(script_path, "test.edj")
diff --git a/examples/elementary/test_frame.py b/examples/elementary/test_frame.py
index 9b1a779..5aa979d 100644
--- a/examples/elementary/test_frame.py
+++ b/examples/elementary/test_frame.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.scroller import Scroller
@@ -13,8 +13,6 @@ from efl.elementary.frame import Frame
from efl.elementary.icon import Icon
from efl.elementary.label import Label
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_gengrid.py b/examples/elementary/test_gengrid.py
index 302c451..8986499 100644
--- a/examples/elementary/test_gengrid.py
+++ b/examples/elementary/test_gengrid.py
@@ -4,7 +4,8 @@
import random
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EVAS_ASPECT_CONTROL_BOTH
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
+ EXPAND_HORIZ, FILL_HORIZ, EVAS_ASPECT_CONTROL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -19,10 +20,6 @@ from efl.elementary.slider import Slider
from efl.elementary.table import Table
from efl.elementary.scroller import Scrollable
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_genlist.py b/examples/elementary/test_genlist.py
index 6bdea80..0b96e53 100644
--- a/examples/elementary/test_genlist.py
+++ b/examples/elementary/test_genlist.py
@@ -8,6 +8,7 @@ import os
from efl import evas
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ, \
EVAS_ASPECT_CONTROL_VERTICAL, Rectangle
from efl.ecore import Timer
from efl import elementary
@@ -28,10 +29,6 @@ from efl.elementary.radio import Radio
from efl.elementary.check import Check
from efl.elementary.entry import Entry
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_gesture_layer.py b/examples/elementary/test_gesture_layer.py
index 5792f05..15fd6e3 100644
--- a/examples/elementary/test_gesture_layer.py
+++ b/examples/elementary/test_gesture_layer.py
@@ -15,10 +15,9 @@ from efl.elementary.layout import Layout
from efl.elementary.entry import Entry, ELM_WRAP_MIXED
from efl.elementary.icon import Icon
-from efl.evas import EVAS_HINT_EXPAND, EVAS_EVENT_FLAG_NONE, Map, Polygon
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH, FILL_BOTH, \
+ EVAS_EVENT_FLAG_NONE, Map, Polygon
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_grid.py b/examples/elementary/test_grid.py
index af80e7a..ac007d7 100644
--- a/examples/elementary/test_grid.py
+++ b/examples/elementary/test_grid.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, Rectangle
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH, FILL_BOTH, Rectangle
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,7 +9,6 @@ from efl.elementary.button import Button
from efl.elementary.entry import Entry
from efl.elementary.grid import Grid, grid_pack_get, grid_pack_set
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
def cb_change(bt):
(x, y, w, h) = grid_pack_get(bt)
diff --git a/examples/elementary/test_hover.py b/examples/elementary/test_hover.py
index 7020d6e..007cd6d 100644
--- a/examples/elementary/test_hover.py
+++ b/examples/elementary/test_hover.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -14,8 +14,6 @@ from efl.elementary.label import Label
from efl.elementary.list import List
from efl.elementary.icon import Icon
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_hoversel.py b/examples/elementary/test_hoversel.py
index 27936ff..45a6739 100644
--- a/examples/elementary/test_hoversel.py
+++ b/examples/elementary/test_hoversel.py
@@ -4,14 +4,13 @@
import os
from efl.ecore import Timer
-from efl.evas import EVAS_HINT_EXPAND
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.hoversel import Hoversel, ELM_ICON_STANDARD, ELM_ICON_FILE
from efl.elementary.icon import Icon
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
WEIGHT_ZERO = 0.0, 0.0
ALIGN_CENTER = 0.5, 0.5
diff --git a/examples/elementary/test_icon.py b/examples/elementary/test_icon.py
index 9e099b0..3beed57 100644
--- a/examples/elementary/test_icon.py
+++ b/examples/elementary/test_icon.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow, Window, ELM_WIN_BASIC
from efl.elementary.box import Box
@@ -18,10 +19,6 @@ from efl.elementary.radio import Radio
from efl.elementary.theme import Theme
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_image.py b/examples/elementary/test_image.py
index 1230c72..c4cfebf 100644
--- a/examples/elementary/test_image.py
+++ b/examples/elementary/test_image.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
@@ -14,8 +14,6 @@ from efl.elementary.image import Image, ELM_IMAGE_ROTATE_90, \
from efl.elementary.progressbar import Progressbar
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_index.py b/examples/elementary/test_index.py
index 842a057..076d525 100644
--- a/examples/elementary/test_index.py
+++ b/examples/elementary/test_index.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -10,9 +11,6 @@ from efl.elementary.index import Index
from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def gl_text_get(gl, part, data):
return str(data)
diff --git a/examples/elementary/test_input_events.py b/examples/elementary/test_input_events.py
index 4b1a8e3..a3b19e5 100644
--- a/examples/elementary/test_input_events.py
+++ b/examples/elementary/test_input_events.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.box import Box
@@ -10,8 +10,6 @@ from efl.elementary.entry import Entry, utf8_to_markup
from efl.elementary.object import EVAS_CALLBACK_KEY_UP
from efl.elementary.window import StandardWindow
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def filter_cb(obj, text, data):
return None
diff --git a/examples/elementary/test_label.py b/examples/elementary/test_label.py
index 21b239e..4b0e794 100644
--- a/examples/elementary/test_label.py
+++ b/examples/elementary/test_label.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -11,10 +12,6 @@ from efl.elementary.radio import Radio
from efl.elementary.separator import Separator
from efl.elementary.slider import Slider
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
def cb_slide_radio(radio, lb):
lb.style = radio.text
diff --git a/examples/elementary/test_layout.py b/examples/elementary/test_layout.py
index 1ab7477..36bea8b 100644
--- a/examples/elementary/test_layout.py
+++ b/examples/elementary/test_layout.py
@@ -3,13 +3,12 @@
import os
-from efl.evas import EVAS_HINT_EXPAND
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.button import Button
from efl.elementary.layout import Layout
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
script_path = os.path.dirname(os.path.abspath(__file__))
diff --git a/examples/elementary/test_list.py b/examples/elementary/test_list.py
index be0dbd4..4a089d3 100644
--- a/examples/elementary/test_list.py
+++ b/examples/elementary/test_list.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow, Window, ELM_WIN_BASIC
from efl.elementary.background import Background
@@ -15,9 +16,7 @@ from efl.elementary.list import List, ELM_LIST_LIMIT, ELM_LIST_COMPRESS
from efl.elementary.icon import Icon
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
+
ALIGN_CENTER = 0.5, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
diff --git a/examples/elementary/test_map.py b/examples/elementary/test_map.py
index a5faed8..f64e7e1 100644
--- a/examples/elementary/test_map.py
+++ b/examples/elementary/test_map.py
@@ -4,7 +4,9 @@
import os
from random import randint
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EVAS_CALLBACK_MOUSE_DOWN
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EVAS_CALLBACK_MOUSE_DOWN, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -21,10 +23,6 @@ from efl.elementary.map import Map, MapOverlayClass, ELM_MAP_OVERLAY_TYPE_CLASS,
from efl.elementary.menu import Menu
from efl.elementary.slider import Slider
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
elementary.need_efreet()
diff --git a/examples/elementary/test_mapbuf.py b/examples/elementary/test_mapbuf.py
index 0d9d89f..bce97ff 100644
--- a/examples/elementary/test_mapbuf.py
+++ b/examples/elementary/test_mapbuf.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, Rectangle, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import Window, ELM_WIN_BASIC
from efl.elementary.background import Background
@@ -16,10 +17,6 @@ from efl.elementary.mapbuf import Mapbuf
from efl.elementary.scroller import Scroller, ELM_SCROLLER_POLICY_OFF
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
ALIGN_CENTER = 0.5, 0.5
SCROLL_POLICY_OFF = ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF
diff --git a/examples/elementary/test_menu.py b/examples/elementary/test_menu.py
index 7d2f3d8..94f43e6 100644
--- a/examples/elementary/test_menu.py
+++ b/examples/elementary/test_menu.py
@@ -1,12 +1,12 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_CALLBACK_MOUSE_DOWN, Rectangle
+from efl.evas import EVAS_HINT_EXPAND, EXPAND_BOTH, \
+ EVAS_CALLBACK_MOUSE_DOWN, Rectangle
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.menu import Menu
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
def menu_show(rect, evtinfo, menu):
(x,y) = evtinfo.position.canvas
diff --git a/examples/elementary/test_multibuttonentry.py b/examples/elementary/test_multibuttonentry.py
index e401461..ea365d7 100644
--- a/examples/elementary/test_multibuttonentry.py
+++ b/examples/elementary/test_multibuttonentry.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -11,10 +12,6 @@ from efl.elementary.multibuttonentry import MultiButtonEntry
from efl.elementary.scroller import Scroller, ELM_SCROLLER_POLICY_OFF, \
ELM_SCROLLER_POLICY_AUTO
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
SCROLL_POLICY_VERT = ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO
counter = 0
diff --git a/examples/elementary/test_naviframe.py b/examples/elementary/test_naviframe.py
index 24ba6fb..644f5af 100644
--- a/examples/elementary/test_naviframe.py
+++ b/examples/elementary/test_naviframe.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -12,8 +12,6 @@ from efl.elementary.icon import Icon
from efl.elementary.naviframe import Naviframe
from efl.elementary.photo import Photo
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_notify.py b/examples/elementary/test_notify.py
index 70db7f0..a62c2e2 100644
--- a/examples/elementary/test_notify.py
+++ b/examples/elementary/test_notify.py
@@ -3,7 +3,7 @@
from __future__ import print_function
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -12,8 +12,6 @@ from efl.elementary.label import Label
from efl.elementary.notify import Notify, ELM_NOTIFY_ALIGN_FILL
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def notify_clicked(obj=None):
win = StandardWindow("notify", "Notify", autodel=True, size=(400,400))
diff --git a/examples/elementary/test_panel.py b/examples/elementary/test_panel.py
index 9cba5af..fa11896 100644
--- a/examples/elementary/test_panel.py
+++ b/examples/elementary/test_panel.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -16,9 +17,6 @@ from efl.elementary.photo import Photo
from efl.elementary.table import Table
from efl.elementary.toolbar import Toolbar, ELM_TOOLBAR_SHRINK_NONE
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_file = os.path.join(script_path, "images", "plant_01.jpg")
diff --git a/examples/elementary/test_panel_scroll.py b/examples/elementary/test_panel_scroll.py
index 3afcf92..016e9a7 100644
--- a/examples/elementary/test_panel_scroll.py
+++ b/examples/elementary/test_panel_scroll.py
@@ -2,7 +2,8 @@
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -11,10 +12,6 @@ from efl.elementary.list import List
from efl.elementary.panel import Panel, ELM_PANEL_ORIENT_LEFT
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-
def panel_scroll_clicked(obj):
win = StandardWindow("panel", "Panel test", autodel=True, size=(320, 400))
diff --git a/examples/elementary/test_panes.py b/examples/elementary/test_panes.py
index 7b55fe2..b28dfc7 100644
--- a/examples/elementary/test_panes.py
+++ b/examples/elementary/test_panes.py
@@ -1,14 +1,12 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.button import Button
from efl.elementary.panes import Panes
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def cb_panes(panes, event):
print(("Event: %s" % (event)))
diff --git a/examples/elementary/test_photo.py b/examples/elementary/test_photo.py
index f1b2c1a..790bbb2 100644
--- a/examples/elementary/test_photo.py
+++ b/examples/elementary/test_photo.py
@@ -3,17 +3,14 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.photo import Photo
from efl.elementary.scroller import Scroller
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_photocam.py b/examples/elementary/test_photocam.py
index 16b0361..ee9d589 100644
--- a/examples/elementary/test_photocam.py
+++ b/examples/elementary/test_photocam.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -13,9 +13,6 @@ from efl.elementary.separator import Separator
from efl.elementary.table import Table
from efl.elementary.fileselector_button import FileselectorButton
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-
remote_url = "http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x10800.jpg"
diff --git a/examples/elementary/test_popup.py b/examples/elementary/test_popup.py
index 7dfa4a3..f495e55 100644
--- a/examples/elementary/test_popup.py
+++ b/examples/elementary/test_popup.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, FilledImage
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
+ FilledImage
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.button import Button
@@ -11,8 +12,6 @@ from efl.elementary.list import List, ELM_LIST_LIMIT
from efl.elementary.icon import Icon
from efl.elementary.popup import Popup, ELM_WRAP_CHAR
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_progressbar.py b/examples/elementary/test_progressbar.py
index 50d0999..f41a1de 100644
--- a/examples/elementary/test_progressbar.py
+++ b/examples/elementary/test_progressbar.py
@@ -4,7 +4,8 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL, EVAS_ASPECT_CONTROL_HORIZONTAL, FilledImage
+ EVAS_ASPECT_CONTROL_VERTICAL, EVAS_ASPECT_CONTROL_HORIZONTAL, FilledImage, \
+ EXPAND_BOTH, FILL_BOTH, FILL_HORIZ
from efl.ecore import Timer, ECORE_CALLBACK_RENEW, ECORE_CALLBACK_CANCEL
from efl import elementary
from efl.elementary.window import StandardWindow
@@ -13,9 +14,6 @@ from efl.elementary.button import Button
from efl.elementary.icon import Icon
from efl.elementary.progressbar import Progressbar
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_radio.py b/examples/elementary/test_radio.py
index a396b45..ebf07eb 100644
--- a/examples/elementary/test_radio.py
+++ b/examples/elementary/test_radio.py
@@ -4,16 +4,13 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL
+ EVAS_ASPECT_CONTROL_VERTICAL, EXPAND_BOTH, FILL_BOTH, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.icon import Icon
from efl.elementary.radio import Radio
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_scroller.py b/examples/elementary/test_scroller.py
index eac5976..1b9827b 100644
--- a/examples/elementary/test_scroller.py
+++ b/examples/elementary/test_scroller.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -11,10 +12,6 @@ from efl.elementary.button import Button
from efl.elementary.scroller import Scroller
from efl.elementary.table import Table
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_segment_control.py b/examples/elementary/test_segment_control.py
index 9fb109f..97adb61 100644
--- a/examples/elementary/test_segment_control.py
+++ b/examples/elementary/test_segment_control.py
@@ -3,17 +3,14 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.icon import Icon
from efl.elementary.segment_control import SegmentControl
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_separator.py b/examples/elementary/test_separator.py
index ada3119..9871b82 100644
--- a/examples/elementary/test_separator.py
+++ b/examples/elementary/test_separator.py
@@ -1,14 +1,13 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.button import Button
from efl.elementary.separator import Separator
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
def separator_clicked(obj):
win = StandardWindow("separators", "Separators", autodel=True)
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
diff --git a/examples/elementary/test_slideshow.py b/examples/elementary/test_slideshow.py
index 6f08877..a3c6a44 100644
--- a/examples/elementary/test_slideshow.py
+++ b/examples/elementary/test_slideshow.py
@@ -4,7 +4,8 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EVAS_CALLBACK_MOUSE_IN, \
- EVAS_CALLBACK_MOUSE_OUT, EVAS_CALLBACK_MOUSE_UP, EVAS_CALLBACK_MOUSE_MOVE
+ EVAS_CALLBACK_MOUSE_OUT, EVAS_CALLBACK_MOUSE_UP, EVAS_CALLBACK_MOUSE_MOVE, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -16,10 +17,6 @@ from efl.elementary.photo import Photo
from efl.elementary.spinner import Spinner
from efl.elementary.slideshow import Slideshow, SlideshowItemClass
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_spinner.py b/examples/elementary/test_spinner.py
index 0c88b84..e1ca38f 100644
--- a/examples/elementary/test_spinner.py
+++ b/examples/elementary/test_spinner.py
@@ -1,16 +1,13 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
from efl.elementary.spinner import Spinner
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
def spinner_clicked(obj):
win = StandardWindow("spinner", "Spinner test", autodel=True,
diff --git a/examples/elementary/test_sys_notify.py b/examples/elementary/test_sys_notify.py
index f0a0812..86fd005 100644
--- a/examples/elementary/test_sys_notify.py
+++ b/examples/elementary/test_sys_notify.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -14,11 +15,6 @@ from efl.elementary.general import on_sys_notify_action_invoked, \
on_sys_notify_notification_closed, sys_notify_send
from efl.ecore import ECORE_CALLBACK_DONE
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
-
def _ev_handler(event, l, n):
print(event)
diff --git a/examples/elementary/test_table.py b/examples/elementary/test_table.py
index 86f7ff2..974202b 100644
--- a/examples/elementary/test_table.py
+++ b/examples/elementary/test_table.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
@@ -12,9 +13,6 @@ from efl.elementary.list import List
from efl.elementary.label import Label
from efl.elementary.frame import Frame
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def table_clicked(obj, item=None):
win = StandardWindow("table", "Table", autodel=True)
diff --git a/examples/elementary/test_thumb.py b/examples/elementary/test_thumb.py
index 6a02fa0..74c74b9 100644
--- a/examples/elementary/test_thumb.py
+++ b/examples/elementary/test_thumb.py
@@ -3,15 +3,13 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.scroller import Scroller
from efl.elementary.table import Table
from efl.elementary.thumb import Thumb
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_toolbar.py b/examples/elementary/test_toolbar.py
index 67f4372..d71d819 100644
--- a/examples/elementary/test_toolbar.py
+++ b/examples/elementary/test_toolbar.py
@@ -3,7 +3,7 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -15,8 +15,6 @@ from efl.elementary.frame import Frame
from efl.elementary.label import Label
from efl.elementary.list import List
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
ALIGN_CENTER = 0.5, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
diff --git a/examples/elementary/test_tooltip.py b/examples/elementary/test_tooltip.py
index be8c5a9..4e38003 100644
--- a/examples/elementary/test_tooltip.py
+++ b/examples/elementary/test_tooltip.py
@@ -3,7 +3,8 @@
import os
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl.ecore import Timer, timer_add
from efl import elementary
from efl.elementary.window import StandardWindow
@@ -14,10 +15,6 @@ from efl.elementary.list import List
from efl.elementary.toolbar import Toolbar
from efl.elementary.icon import Icon
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_transit.py b/examples/elementary/test_transit.py
index 3200cff..bd3ce20 100644
--- a/examples/elementary/test_transit.py
+++ b/examples/elementary/test_transit.py
@@ -4,7 +4,7 @@
import os
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
- EVAS_ASPECT_CONTROL_VERTICAL
+ EVAS_ASPECT_CONTROL_VERTICAL, EXPAND_BOTH, FILL_BOTH
from efl import elementary
from efl.elementary.button import Button
from efl.elementary.window import StandardWindow
@@ -18,8 +18,6 @@ from efl.elementary.frame import Frame
from efl.elementary.label import Label
from efl.elementary.list import List
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
script_path = os.path.dirname(os.path.abspath(__file__))
img_path = os.path.join(script_path, "images")
diff --git a/examples/elementary/test_video.py b/examples/elementary/test_video.py
index a1bc51d..3c0cd98 100644
--- a/examples/elementary/test_video.py
+++ b/examples/elementary/test_video.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
EVAS_CALLBACK_MOUSE_MOVE, EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_OUT
from efl import elementary
from efl.elementary.window import StandardWindow
@@ -12,8 +12,6 @@ from efl.elementary.fileselector_button import FileselectorButton
from efl.elementary.table import Table
from efl.elementary.video import Video, Player
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
def my_bt_open(bt, vfile, video):
if (vfile and video):
diff --git a/examples/elementary/test_web.py b/examples/elementary/test_web.py
index 98ec635..2c1bcff 100644
--- a/examples/elementary/test_web.py
+++ b/examples/elementary/test_web.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box
@@ -9,11 +10,6 @@ from efl.elementary.button import Button
from efl.elementary.entry import Entry
from efl.elementary.web import Web
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
-
def web_clicked(obj):
if not elementary.need_web():
diff --git a/examples/elementary/test_win.py b/examples/elementary/test_win.py
index 366664d..8e2ca76 100644
--- a/examples/elementary/test_win.py
+++ b/examples/elementary/test_win.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, \
+ EXPAND_BOTH, FILL_BOTH, EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.window import Window, ELM_WIN_BASIC
from efl.elementary.background import Background
@@ -10,10 +11,6 @@ from efl.elementary.button import Button
from efl.elementary.check import Check
from efl.elementary.slider import Slider
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
-FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL
-FILL_HORIZ = EVAS_HINT_FILL, 0.5
def cb_alpha(bt, win, bg, on):
win.alpha = on
diff --git a/examples/elementary/test_win_dialog.py b/examples/elementary/test_win_dialog.py
index 45a4224..42b4356 100644
--- a/examples/elementary/test_win_dialog.py
+++ b/examples/elementary/test_win_dialog.py
@@ -1,15 +1,13 @@
#!/usr/bin/env python
# encoding: utf-8
-from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
+from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH
from efl import elementary
from efl.elementary.window import StandardWindow, DialogWindow
from efl.elementary.box import Box
from efl.elementary.button import Button
from efl.elementary.label import Label
-EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
-
def clicked_cb(btn, parent):
dia = DialogWindow(parent, "window-dia", "DialogWindow",