summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Andreoli <dave@gurumeditation.it>2013-03-01 21:01:50 +0000
committerDavide Andreoli <dave@gurumeditation.it>2013-03-01 21:01:50 +0000
commit0873fe162131bf672245e51d2670fc1ce822cfdd (patch)
tree4fa8667a51105ad846560dafe7e8fe64d935e616
parente02e6491d4d7902df7c326e98d5a061a6bc3fccf (diff)
Do not import EVERY widget while importing efl.elementary
Now the user is responsable of importing the widget used one by one, this should be a great speedup in the launch of the app. You have to import stuff in this way: from efl import evas from efl import elementary from efl.elementary.window import Window from efl.elementary.layout import Layout ...sorry for the inconvenience SVN revision: 84402
-rw-r--r--TODO5
-rw-r--r--efl/elementary/__init__.py867
-rw-r--r--examples/elementary/test.py41
-rw-r--r--examples/elementary/test_3d.py33
-rw-r--r--examples/elementary/test_actionslider.py16
-rw-r--r--examples/elementary/test_bg.py28
-rw-r--r--examples/elementary/test_box.py95
-rw-r--r--examples/elementary/test_bubble.py53
-rw-r--r--examples/elementary/test_button.py29
-rw-r--r--examples/elementary/test_calendar.py17
-rw-r--r--examples/elementary/test_check.py32
-rw-r--r--examples/elementary/test_clock.py25
-rw-r--r--examples/elementary/test_colorselector.py29
-rw-r--r--examples/elementary/test_core_evas_canvas_callbacks.py15
-rw-r--r--examples/elementary/test_core_evas_object_callbacks.py27
-rw-r--r--examples/elementary/test_core_evas_objects.py10
-rw-r--r--examples/elementary/test_ctxpopup.py43
-rw-r--r--examples/elementary/test_cursor.py106
-rw-r--r--examples/elementary/test_datetime.py17
-rw-r--r--examples/elementary/test_dayselector.py19
-rw-r--r--examples/elementary/test_diskselector.py28
-rw-r--r--examples/elementary/test_entry.py59
-rw-r--r--examples/elementary/test_external.py40
-rw-r--r--examples/elementary/test_fileselector.py95
-rw-r--r--examples/elementary/test_flip.py80
-rw-r--r--examples/elementary/test_flipselector.py30
-rw-r--r--examples/elementary/test_frame.py21
-rw-r--r--examples/elementary/test_gengrid.py68
-rw-r--r--examples/elementary/test_genlist.py144
-rw-r--r--examples/elementary/test_grid.py28
-rw-r--r--examples/elementary/test_hover.py79
-rw-r--r--examples/elementary/test_hoversel.py27
-rw-r--r--examples/elementary/test_icon.py53
-rw-r--r--examples/elementary/test_index.py37
-rw-r--r--examples/elementary/test_inwin.py14
-rw-r--r--examples/elementary/test_label.py44
-rw-r--r--examples/elementary/test_layout.py18
-rw-r--r--examples/elementary/test_list.py113
-rw-r--r--examples/elementary/test_map.py82
-rw-r--r--examples/elementary/test_map2.py90
-rw-r--r--examples/elementary/test_map3.py96
-rw-r--r--examples/elementary/test_mapbuf.py42
-rw-r--r--examples/elementary/test_menu.py11
-rw-r--r--examples/elementary/test_multibuttonentry.py39
-rw-r--r--examples/elementary/test_naviframe.py47
-rw-r--r--examples/elementary/test_notify.py41
-rw-r--r--examples/elementary/test_panel.py17
-rw-r--r--examples/elementary/test_panes.py20
-rw-r--r--examples/elementary/test_photo.py17
-rw-r--r--examples/elementary/test_popup.py68
-rw-r--r--examples/elementary/test_progressbar.py42
-rw-r--r--examples/elementary/test_radio.py33
-rw-r--r--examples/elementary/test_scroller.py27
-rw-r--r--examples/elementary/test_segment_control.py31
-rw-r--r--examples/elementary/test_separator.py68
-rw-r--r--examples/elementary/test_slideshow.py37
-rw-r--r--examples/elementary/test_spinner.py18
-rw-r--r--examples/elementary/test_table.py24
-rw-r--r--examples/elementary/test_thumb.py15
-rw-r--r--examples/elementary/test_toolbar.py26
-rw-r--r--examples/elementary/test_tooltip.py42
-rw-r--r--examples/elementary/test_video.py25
-rw-r--r--examples/elementary/test_web.py29
-rw-r--r--examples/elementary/test_win.py28
64 files changed, 1972 insertions, 1528 deletions
diff --git a/TODO b/TODO
index 64862e1..4bf15d4 100644
--- a/TODO
+++ b/TODO
@@ -2,7 +2,10 @@
2BUGS: 2BUGS:
3 3
4* Evas: smart object doesn't work 4* Evas: smart object doesn't work
5 5* Elm: test genlist 2 -> Flush ('elm_cache_all_flush' not defined)
6* Elm: test genlist Sorted ('Genlist' object has no attribute 'obj')
7* Elm: test grid -> click 'Change' btn ('Grid' object has no attribute 'pack_get')
8* Elm: remove tooltips.pxi
6 9
7TODO: 10TODO:
8 11
diff --git a/efl/elementary/__init__.py b/efl/elementary/__init__.py
index 0f800ec..1a16392 100644
--- a/efl/elementary/__init__.py
+++ b/efl/elementary/__init__.py
@@ -17,444 +17,439 @@
17# along with python-elementary. If not, see <http://www.gnu.org/licenses/>. 17# along with python-elementary. If not, see <http://www.gnu.org/licenses/>.
18# 18#
19 19
20from efl.elementary.actionslider import Actionslider 20from efl.elementary.configuration import \
21from efl.elementary.background import Background 21 Configuration, \
22from efl.elementary.box import Box 22 config_finger_size_get, \
23from efl.elementary.bubble import Bubble 23 config_finger_size_set, \
24from efl.elementary.button import Button 24 config_tooltip_delay_get, \
25from efl.elementary.calendar_elm import Calendar, CalendarMark 25 config_tooltip_delay_set, \
26from efl.elementary.check import Check 26 focus_highlight_animate_get, \
27from efl.elementary.clock import Clock 27 focus_highlight_animate_set, \
28from efl.elementary.colorselector import Colorselector, ColorselectorPaletteItem 28 focus_highlight_enabled_get, \
29from efl.elementary.configuration import Configuration, \ 29 focus_highlight_enabled_set, \
30 config_finger_size_get, config_finger_size_set, \ 30 preferred_engine_get, \
31 config_tooltip_delay_get, config_tooltip_delay_set, \ 31 preferred_engine_set, \
32 focus_highlight_animate_get, focus_highlight_animate_set, \ 32 engine_get, \
33 focus_highlight_enabled_get, focus_highlight_enabled_set, \ 33 engine_set, \
34 preferred_engine_get, preferred_engine_set, \ 34 scale_get, \
35 engine_get, engine_set, scale_get, scale_set, \ 35 scale_set, \
36 cursor_engine_only_get, cursor_engine_only_set 36 cursor_engine_only_get, \
37from efl.elementary.conformant import Conformant 37 cursor_engine_only_set
38from efl.elementary.ctxpopup import Ctxpopup, CtxpopupItem
39from efl.elementary.datetime_elm import Datetime
40from efl.elementary.dayselector import Dayselector
41from efl.elementary.diskselector import Diskselector, DiskselectorItem
42from efl.elementary.entry import Entry
43from efl.elementary.fileselector import Fileselector
44from efl.elementary.fileselector_button import FileselectorButton
45from efl.elementary.fileselector_entry import FileselectorEntry
46from efl.elementary.flip import Flip
47from efl.elementary.flipselector import FlipSelector, FlipSelectorItem
48from efl.elementary.frame import Frame
49from efl.elementary.general import init, shutdown, run, exit, coords_finger_size_adjust, policy_set, policy_get
50from efl.elementary.gengrid import Gengrid, GengridItem, GengridItemClass
51from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass
52from efl.elementary.gesture_layer import GestureLayer
53from efl.elementary.grid import Grid
54from efl.elementary.hover import Hover
55from efl.elementary.hoversel import Hoversel, HoverselItem
56from efl.elementary.icon import Icon
57from efl.elementary.image import Image
58from efl.elementary.index import Index, IndexItem
59from efl.elementary.innerwindow import InnerWindow
60from efl.elementary.label import Label
61from efl.elementary.layout import Layout
62from efl.elementary.layout_class import LayoutClass
63from efl.elementary.list import List, ListItem
64from efl.elementary.map import Map, MapName, MapOverlay, MapOverlayBubble, MapOverlayCircle, MapOverlayClass, MapOverlayLine, MapOverlayPolygon, MapOverlayRoute, MapOverlayScale
65from efl.elementary.mapbuf import Mapbuf
66from efl.elementary.menu import Menu, MenuItem, MenuSeparatorItem
67from efl.elementary.multibuttonentry import MultiButtonEntry, MultiButtonEntryItem
68from efl.elementary.naviframe import Naviframe, NaviframeItem
69from efl.elementary.need import *
70from efl.elementary.notify import Notify
71from efl.elementary.object import Object
72from efl.elementary.object_item import ObjectItem
73from efl.elementary.panel import Panel
74from efl.elementary.panes import Panes
75from efl.elementary.photo import Photo
76from efl.elementary.photocam import Photocam
77from efl.elementary.plug import Plug
78from efl.elementary.popup import Popup, PopupItem
79from efl.elementary.progressbar import Progressbar
80from efl.elementary.radio import Radio
81from efl.elementary.scroller import Scroller
82from efl.elementary.segment_control import SegmentControl, SegmentControlItem
83from efl.elementary.separator import Separator
84from efl.elementary.slider import Slider
85from efl.elementary.slideshow import Slideshow, SlideshowItem, SlideshowItemClass
86from efl.elementary.spinner import Spinner
87from efl.elementary.table import Table
88from efl.elementary.theme import Theme, theme_overlay_add, theme_extension_add
89from efl.elementary.thumb import Thumb
90from efl.elementary.toolbar import Toolbar, ToolbarItem
91from efl.elementary.transit import Transit
92from efl.elementary.video import Video, Player
93from efl.elementary.web import Web
94from efl.elementary.window import Window, StandardWindow
95
96from efl.elementary.actionslider import \
97 ELM_ACTIONSLIDER_NONE, \
98 ELM_ACTIONSLIDER_LEFT, \
99 ELM_ACTIONSLIDER_CENTER, \
100 ELM_ACTIONSLIDER_RIGHT, \
101 ELM_ACTIONSLIDER_ALL
102
103from efl.elementary.background import \
104 ELM_BG_OPTION_CENTER, \
105 ELM_BG_OPTION_SCALE, \
106 ELM_BG_OPTION_STRETCH, \
107 ELM_BG_OPTION_TILE, \
108 ELM_BG_OPTION_LAST
109
110from efl.elementary.box import \
111 ELM_BOX_LAYOUT_HORIZONTAL, \
112 ELM_BOX_LAYOUT_VERTICAL, \
113 ELM_BOX_LAYOUT_HOMOGENEOUS_VERTICAL, \
114 ELM_BOX_LAYOUT_HOMOGENEOUS_HORIZONTAL, \
115 ELM_BOX_LAYOUT_HOMOGENEOUS_MAX_SIZE_HORIZONTAL, \
116 ELM_BOX_LAYOUT_HOMOGENEOUS_MAX_SIZE_VERTICAL, \
117 ELM_BOX_LAYOUT_FLOW_HORIZONTAL, \
118 ELM_BOX_LAYOUT_FLOW_VERTICAL, \
119 ELM_BOX_LAYOUT_STACK
120
121from efl.elementary.bubble import \
122 ELM_BUBBLE_POS_TOP_LEFT, \
123 ELM_BUBBLE_POS_TOP_RIGHT, \
124 ELM_BUBBLE_POS_BOTTOM_LEFT, \
125 ELM_BUBBLE_POS_BOTTOM_RIGHT
126
127from efl.elementary.calendar_elm import \
128 ELM_CALENDAR_UNIQUE, \
129 ELM_CALENDAR_DAILY, \
130 ELM_CALENDAR_WEEKLY, \
131 ELM_CALENDAR_MONTHLY, \
132 ELM_CALENDAR_ANNUALLY, \
133 ELM_CALENDAR_LAST_DAY_OF_MONTH, \
134 ELM_CALENDAR_SELECT_MODE_DEFAULT, \
135 ELM_CALENDAR_SELECT_MODE_ALWAYS, \
136 ELM_CALENDAR_SELECT_MODE_NONE, \
137 ELM_CALENDAR_SELECT_MODE_ONDEMAND
138
139from efl.elementary.clock import \
140 ELM_CLOCK_EDIT_DEFAULT, \
141 ELM_CLOCK_EDIT_HOUR_DECIMAL, \
142 ELM_CLOCK_EDIT_HOUR_UNIT, \
143 ELM_CLOCK_EDIT_MIN_DECIMAL, \
144 ELM_CLOCK_EDIT_MIN_UNIT, \
145 ELM_CLOCK_EDIT_SEC_DECIMAL, \
146 ELM_CLOCK_EDIT_SEC_UNIT, \
147 ELM_CLOCK_EDIT_ALL
148
149from efl.elementary.entry import \
150 ELM_CNP_MODE_MARKUP, \
151 ELM_CNP_MODE_NO_IMAGE, \
152 ELM_CNP_MODE_PLAINTEXT
153
154from efl.elementary.colorselector import \
155 ELM_COLORSELECTOR_PALETTE, \
156 ELM_COLORSELECTOR_COMPONENTS, \
157 ELM_COLORSELECTOR_BOTH
158
159from efl.elementary.ctxpopup import \
160 ELM_CTXPOPUP_DIRECTION_DOWN, \
161 ELM_CTXPOPUP_DIRECTION_RIGHT, \
162 ELM_CTXPOPUP_DIRECTION_LEFT, \
163 ELM_CTXPOPUP_DIRECTION_UP, \
164 ELM_CTXPOPUP_DIRECTION_UNKNOWN
165
166from efl.elementary.datetime_elm import \
167 ELM_DATETIME_YEAR, \
168 ELM_DATETIME_MONTH, \
169 ELM_DATETIME_DATE, \
170 ELM_DATETIME_HOUR, \
171 ELM_DATETIME_MINUTE, \
172 ELM_DATETIME_AMPM
173
174from efl.elementary.calendar_elm import \
175 ELM_DAY_SUNDAY, \
176 ELM_DAY_MONDAY, \
177 ELM_DAY_TUESDAY, \
178 ELM_DAY_WEDNESDAY, \
179 ELM_DAY_THURSDAY, \
180 ELM_DAY_FRIDAY, \
181 ELM_DAY_SATURDAY, \
182 ELM_DAY_LAST
183
184from efl.elementary.dayselector import \
185 ELM_DAYSELECTOR_SUN, \
186 ELM_DAYSELECTOR_MON, \
187 ELM_DAYSELECTOR_TUE, \
188 ELM_DAYSELECTOR_WED, \
189 ELM_DAYSELECTOR_THU, \
190 ELM_DAYSELECTOR_FRI, \
191 ELM_DAYSELECTOR_SAT
192
193from efl.elementary.fileselector import \
194 ELM_FILESELECTOR_LIST, \
195 ELM_FILESELECTOR_GRID
196
197from efl.elementary.flip import \
198 ELM_FLIP_DIRECTION_UP, \
199 ELM_FLIP_DIRECTION_DOWN, \
200 ELM_FLIP_DIRECTION_LEFT, \
201 ELM_FLIP_DIRECTION_RIGHT, \
202 ELM_FLIP_INTERACTION_NONE, \
203 ELM_FLIP_INTERACTION_ROTATE, \
204 ELM_FLIP_INTERACTION_CUBE, \
205 ELM_FLIP_INTERACTION_PAGE, \
206 ELM_FLIP_ROTATE_Y_CENTER_AXIS, \
207 ELM_FLIP_ROTATE_X_CENTER_AXIS, \
208 ELM_FLIP_ROTATE_XZ_CENTER_AXIS, \
209 ELM_FLIP_ROTATE_YZ_CENTER_AXIS, \
210 ELM_FLIP_CUBE_LEFT, \
211 ELM_FLIP_CUBE_RIGHT, \
212 ELM_FLIP_CUBE_UP, \
213 ELM_FLIP_CUBE_DOWN, \
214 ELM_FLIP_PAGE_LEFT, \
215 ELM_FLIP_PAGE_RIGHT, \
216 ELM_FLIP_PAGE_UP, \
217 ELM_FLIP_PAGE_DOWN
218
219from efl.elementary.object import \
220 ELM_FOCUS_PREVIOUS, \
221 ELM_FOCUS_NEXT
222
223from efl.elementary.genlist import \
224 ELM_GENLIST_ITEM_NONE, \
225 ELM_GENLIST_ITEM_TREE, \
226 ELM_GENLIST_ITEM_GROUP, \
227 ELM_GENLIST_ITEM_MAX, \
228 ELM_GENLIST_ITEM_FIELD_ALL, \
229 ELM_GENLIST_ITEM_FIELD_TEXT, \
230 ELM_GENLIST_ITEM_FIELD_CONTENT, \
231 ELM_GENLIST_ITEM_FIELD_STATE
232
233from efl.elementary.gesture_layer import \
234 ELM_GESTURE_STATE_UNDEFINED, \
235 ELM_GESTURE_STATE_START, \
236 ELM_GESTURE_STATE_MOVE, \
237 ELM_GESTURE_STATE_END, \
238 ELM_GESTURE_STATE_ABORT, \
239 ELM_GESTURE_FIRST, \
240 ELM_GESTURE_N_TAPS, \
241 ELM_GESTURE_N_LONG_TAPS, \
242 ELM_GESTURE_N_DOUBLE_TAPS, \
243 ELM_GESTURE_N_TRIPLE_TAPS, \
244 ELM_GESTURE_MOMENTUM, \
245 ELM_GESTURE_N_LINES, \
246 ELM_GESTURE_N_FLICKS, \
247 ELM_GESTURE_ZOOM, \
248 ELM_GESTURE_ROTATE
249
250from efl.elementary.hover import \
251 ELM_HOVER_AXIS_NONE, \
252 ELM_HOVER_AXIS_HORIZONTAL, \
253 ELM_HOVER_AXIS_VERTICAL, \
254 ELM_HOVER_AXIS_BOTH
255
256from efl.elementary.icon import \
257 ELM_ICON_NONE, \
258 ELM_ICON_FILE, \
259 ELM_ICON_STANDARD
260
261#~ from object import \
262 #~ ELM_ILLUME_COMMAND_FOCUS_BACK, \
263 #~ ELM_ILLUME_COMMAND_FOCUS_FORWARD, \
264 #~ ELM_ILLUME_COMMAND_FOCUS_HOME, \
265 #~ ELM_ILLUME_COMMAND_CLOSE
266
267from efl.elementary.image import \
268 ELM_IMAGE_ORIENT_NONE, \
269 ELM_IMAGE_ROTATE_90, \
270 ELM_IMAGE_ROTATE_180, \
271 ELM_IMAGE_ROTATE_270, \
272 ELM_IMAGE_FLIP_HORIZONTAL, \
273 ELM_IMAGE_FLIP_VERTICAL, \
274 ELM_IMAGE_FLIP_TRANSPOSE, \
275 ELM_IMAGE_FLIP_TRANSVERSE
276
277from efl.elementary.entry import \
278 ELM_INPUT_PANEL_LANG_AUTOMATIC, \
279 ELM_INPUT_PANEL_LANG_ALPHABET, \
280 ELM_INPUT_PANEL_LAYOUT_NORMAL, \
281 ELM_INPUT_PANEL_LAYOUT_NUMBER, \
282 ELM_INPUT_PANEL_LAYOUT_EMAIL, \
283 ELM_INPUT_PANEL_LAYOUT_URL, \
284 ELM_INPUT_PANEL_LAYOUT_PHONENUMBER, \
285 ELM_INPUT_PANEL_LAYOUT_IP, \
286 ELM_INPUT_PANEL_LAYOUT_MONTH, \
287 ELM_INPUT_PANEL_LAYOUT_NUMBERONLY, \
288 ELM_INPUT_PANEL_LAYOUT_INVALID, \
289 ELM_INPUT_PANEL_LAYOUT_HEX, \
290 ELM_INPUT_PANEL_LAYOUT_TERMINAL, \
291 ELM_INPUT_PANEL_LAYOUT_PASSWORD, \
292 ELM_INPUT_PANEL_RETURN_KEY_TYPE_DEFAULT, \
293 ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE, \
294 ELM_INPUT_PANEL_RETURN_KEY_TYPE_GO, \
295 ELM_INPUT_PANEL_RETURN_KEY_TYPE_JOIN, \
296 ELM_INPUT_PANEL_RETURN_KEY_TYPE_LOGIN, \
297 ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT, \
298 ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEARCH, \
299 ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEND
300
301from efl.elementary.label import \
302 ELM_LABEL_SLIDE_MODE_NONE, \
303 ELM_LABEL_SLIDE_MODE_AUTO, \
304 ELM_LABEL_SLIDE_MODE_ALWAYS
305
306from efl.elementary.list import \
307 ELM_LIST_COMPRESS, \
308 ELM_LIST_SCROLL, \
309 ELM_LIST_LIMIT
310
311from efl.elementary.map import \
312 ELM_MAP_OVERLAY_TYPE_NONE, \
313 ELM_MAP_OVERLAY_TYPE_DEFAULT, \
314 ELM_MAP_OVERLAY_TYPE_CLASS, \
315 ELM_MAP_OVERLAY_TYPE_GROUP, \
316 ELM_MAP_OVERLAY_TYPE_BUBBLE, \
317 ELM_MAP_OVERLAY_TYPE_ROUTE, \
318 ELM_MAP_OVERLAY_TYPE_LINE, \
319 ELM_MAP_OVERLAY_TYPE_POLYGON, \
320 ELM_MAP_OVERLAY_TYPE_CIRCLE, \
321 ELM_MAP_OVERLAY_TYPE_SCALE, \
322 ELM_MAP_ROUTE_METHOD_FASTEST, \
323 ELM_MAP_ROUTE_METHOD_SHORTEST, \
324 ELM_MAP_ROUTE_METHOD_LAST, \
325 ELM_MAP_ROUTE_TYPE_MOTOCAR, \
326 ELM_MAP_ROUTE_TYPE_BICYCLE, \
327 ELM_MAP_ROUTE_TYPE_FOOT, \
328 ELM_MAP_ROUTE_TYPE_LAST, \
329 ELM_MAP_SOURCE_TYPE_TILE, \
330 ELM_MAP_SOURCE_TYPE_ROUTE, \
331 ELM_MAP_SOURCE_TYPE_NAME, \
332 ELM_MAP_SOURCE_TYPE_LAST, \
333 ELM_MAP_ZOOM_MODE_MANUAL, \
334 ELM_MAP_ZOOM_MODE_AUTO_FIT, \
335 ELM_MAP_ZOOM_MODE_AUTO_FILL, \
336 ELM_MAP_ZOOM_MODE_LAST
337
338from efl.elementary.notify import \
339 ELM_NOTIFY_ORIENT_TOP, \
340 ELM_NOTIFY_ORIENT_CENTER, \
341 ELM_NOTIFY_ORIENT_BOTTOM, \
342 ELM_NOTIFY_ORIENT_LEFT, \
343 ELM_NOTIFY_ORIENT_RIGHT, \
344 ELM_NOTIFY_ORIENT_TOP_LEFT, \
345 ELM_NOTIFY_ORIENT_TOP_RIGHT, \
346 ELM_NOTIFY_ORIENT_BOTTOM_LEFT, \
347 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT
348
349from efl.elementary.list import \
350 ELM_OBJECT_SELECT_MODE_DEFAULT, \
351 ELM_OBJECT_SELECT_MODE_ALWAYS, \
352 ELM_OBJECT_SELECT_MODE_NONE, \
353 ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY, \
354 ELM_OBJECT_SELECT_MODE_MAX
355
356from efl.elementary.panel import \
357 ELM_PANEL_ORIENT_TOP, \
358 ELM_PANEL_ORIENT_BOTTOM, \
359 ELM_PANEL_ORIENT_LEFT, \
360 ELM_PANEL_ORIENT_RIGHT
361
362from efl.elementary.photocam import \
363 ELM_PHOTOCAM_ZOOM_MODE_MANUAL, \
364 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, \
365 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, \
366 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN
367 38
368from efl.elementary.general import \ 39from efl.elementary.general import \
369 ELM_POLICY_QUIT, \ 40 init, \
370 ELM_POLICY_QUIT_NONE, \ 41 shutdown,\
371 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED 42 run, \
372 43 exit, \
373from efl.elementary.popup import \ 44 coords_finger_size_adjust, \
374 ELM_POPUP_ORIENT_TOP, \ 45 policy_set, \
375 ELM_POPUP_ORIENT_CENTER, \ 46 policy_get
376 ELM_POPUP_ORIENT_BOTTOM, \ 47
377 ELM_POPUP_ORIENT_LEFT, \ 48from efl.elementary.theme import \
378 ELM_POPUP_ORIENT_RIGHT, \ 49 Theme, \
379 ELM_POPUP_ORIENT_TOP_LEFT, \ 50 theme_overlay_add, \
380 ELM_POPUP_ORIENT_TOP_RIGHT, \ 51 theme_extension_add
381 ELM_POPUP_ORIENT_BOTTOM_LEFT, \ 52
382 ELM_POPUP_ORIENT_BOTTOM_RIGHT 53from efl.elementary.need import \
383 54 need_efreet, \
384from efl.elementary.scroller import \ 55 need_systray, \
385 ELM_SCROLLER_POLICY_AUTO, \ 56 need_sys_notify, \
386 ELM_SCROLLER_POLICY_ON, \ 57 need_e_dbus, \
387 ELM_SCROLLER_POLICY_OFF 58 need_edbus, \
388 59 need_elocation, \
389from efl.elementary.entry import \ 60 need_ethumb, \
390 ELM_TEXT_FORMAT_PLAIN_UTF8, \ 61 need_web
391 ELM_TEXT_FORMAT_MARKUP_UTF8 62
392 63
393from efl.elementary.toolbar import \ 64# from efl.elementary.object import Object
394 ELM_TOOLBAR_SHRINK_NONE, \ 65# from efl.elementary.object_item import ObjectItem
395 ELM_TOOLBAR_SHRINK_HIDE, \ 66# from efl.elementary.layout import Layout
396 ELM_TOOLBAR_SHRINK_SCROLL, \ 67# from efl.elementary.layout_class import LayoutClass
397 ELM_TOOLBAR_SHRINK_MENU, \ 68
398 ELM_TOOLBAR_SHRINK_EXPAND, \ 69
399 ELM_TOOLBAR_SHRINK_LAST 70# from efl.elementary.actionslider
400 71ELM_ACTIONSLIDER_NONE = 0
401from efl.elementary.web import \ 72ELM_ACTIONSLIDER_LEFT = 1 << 0
402 ELM_WEB_WINDOW_FEATURE_TOOLBAR, \ 73ELM_ACTIONSLIDER_CENTER = 1 << 1
403 ELM_WEB_WINDOW_FEATURE_STATUSBAR, \ 74ELM_ACTIONSLIDER_RIGHT = 1 << 2
404 ELM_WEB_WINDOW_FEATURE_SCROLLBARS, \ 75ELM_ACTIONSLIDER_ALL = (1 << 3) - 1
405 ELM_WEB_WINDOW_FEATURE_MENUBAR, \ 76
406 ELM_WEB_WINDOW_FEATURE_LOCATIONBAR, \ 77# from efl.elementary.background
407 ELM_WEB_WINDOW_FEATURE_FULLSCREEN, \ 78ELM_BG_OPTION_CENTER = 0
408 ELM_WEB_ZOOM_MODE_MANUAL, \ 79ELM_BG_OPTION_SCALE = 1
409 ELM_WEB_ZOOM_MODE_AUTO_FIT, \ 80ELM_BG_OPTION_STRETCH = 2
410 ELM_WEB_ZOOM_MODE_AUTO_FILL 81ELM_BG_OPTION_TILE = 3
411 82ELM_BG_OPTION_LAST = 4
412from efl.elementary.window import \ 83
413 ELM_WIN_BASIC, \ 84# from efl.elementary.box
414 ELM_WIN_DIALOG_BASIC, \ 85ELM_BOX_LAYOUT_HORIZONTAL = 0
415 ELM_WIN_DESKTOP, \ 86ELM_BOX_LAYOUT_VERTICAL = 1
416 ELM_WIN_DOCK, \ 87ELM_BOX_LAYOUT_HOMOGENEOUS_VERTICAL = 2
417 ELM_WIN_TOOLBAR, \ 88ELM_BOX_LAYOUT_HOMOGENEOUS_HORIZONTAL = 3
418 ELM_WIN_MENU, \ 89ELM_BOX_LAYOUT_HOMOGENEOUS_MAX_SIZE_HORIZONTAL = 4
419 ELM_WIN_UTILITY, \ 90ELM_BOX_LAYOUT_HOMOGENEOUS_MAX_SIZE_VERTICAL = 5
420 ELM_WIN_SPLASH, \ 91ELM_BOX_LAYOUT_FLOW_HORIZONTAL = 6
421 ELM_WIN_DROPDOWN_MENU, \ 92ELM_BOX_LAYOUT_FLOW_VERTICAL = 7
422 ELM_WIN_POPUP_MENU, \ 93ELM_BOX_LAYOUT_STACK = 8
423 ELM_WIN_TOOLTIP, \ 94
424 ELM_WIN_NOTIFICATION, \ 95# from efl.elementary.bubble
425 ELM_WIN_COMBO, \ 96ELM_BUBBLE_POS_TOP_LEFT = 0
426 ELM_WIN_DND, \ 97ELM_BUBBLE_POS_TOP_RIGHT = 1
427 ELM_WIN_INLINED_IMAGE, \ 98ELM_BUBBLE_POS_BOTTOM_LEFT = 2
428 ELM_WIN_SOCKET_IMAGE, \ 99ELM_BUBBLE_POS_BOTTOM_RIGHT = 3
429 ELM_WIN_INDICATOR_UNKNOWN, \ 100
430 ELM_WIN_INDICATOR_HIDE, \ 101# from efl.elementary.calendar_elm
431 ELM_WIN_INDICATOR_SHOW, \ 102ELM_CALENDAR_UNIQUE = 0
432 ELM_WIN_INDICATOR_OPACITY_UNKNOWN, \ 103ELM_CALENDAR_DAILY = 1
433 ELM_WIN_INDICATOR_OPAQUE, \ 104ELM_CALENDAR_WEEKLY = 2
434 ELM_WIN_INDICATOR_TRANSLUCENT, \ 105ELM_CALENDAR_MONTHLY = 3
435 ELM_WIN_INDICATOR_TRANSPARENT, \ 106ELM_CALENDAR_ANNUALLY = 4
436 ELM_WIN_KEYBOARD_UNKNOWN, \ 107ELM_CALENDAR_LAST_DAY_OF_MONTH = 5
437 ELM_WIN_KEYBOARD_OFF, \ 108
438 ELM_WIN_KEYBOARD_ON, \ 109ELM_CALENDAR_SELECT_MODE_DEFAULT = 0
439 ELM_WIN_KEYBOARD_ALPHA, \ 110ELM_CALENDAR_SELECT_MODE_ALWAYS = 1
440 ELM_WIN_KEYBOARD_NUMERIC, \ 111ELM_CALENDAR_SELECT_MODE_NONE = 2
441 ELM_WIN_KEYBOARD_PIN, \ 112ELM_CALENDAR_SELECT_MODE_ONDEMAND = 3
442 ELM_WIN_KEYBOARD_PHONE_NUMBER, \ 113
443 ELM_WIN_KEYBOARD_HEX, \ 114# from efl.elementary.clock
444 ELM_WIN_KEYBOARD_TERMINAL, \ 115ELM_CLOCK_EDIT_DEFAULT = 0
445 ELM_WIN_KEYBOARD_PASSWORD, \ 116ELM_CLOCK_EDIT_HOUR_DECIMAL = 1 << 0
446 ELM_WIN_KEYBOARD_IP, \ 117ELM_CLOCK_EDIT_HOUR_UNIT = 1 << 1
447 ELM_WIN_KEYBOARD_HOST, \ 118ELM_CLOCK_EDIT_MIN_DECIMAL = 1 << 2
448 ELM_WIN_KEYBOARD_FILE, \ 119ELM_CLOCK_EDIT_MIN_UNIT = 1 << 3
449 ELM_WIN_KEYBOARD_URL, \ 120ELM_CLOCK_EDIT_SEC_DECIMAL = 1 << 4
450 ELM_WIN_KEYBOARD_KEYPAD, \ 121ELM_CLOCK_EDIT_SEC_UNIT = 1 << 5
451 ELM_WIN_KEYBOARD_J2ME 122ELM_CLOCK_EDIT_ALL = (1 << 6) - 1
452 123
453from efl.elementary.label import \ 124# from efl.elementary.entry
454 ELM_WRAP_NONE, \ 125ELM_CNP_MODE_MARKUP = 0
455 ELM_WRAP_CHAR, \ 126ELM_CNP_MODE_NO_IMAGE = 1
456 ELM_WRAP_WORD, \ 127ELM_CNP_MODE_PLAINTEXT = 2
457 ELM_WRAP_MIXED 128
129# from efl.elementary.colorselector
130ELM_COLORSELECTOR_PALETTE = 0
131ELM_COLORSELECTOR_COMPONENTS = 1
132ELM_COLORSELECTOR_BOTH = 2
133
134# from efl.elementary.ctxpopup
135ELM_CTXPOPUP_DIRECTION_DOWN = 0
136ELM_CTXPOPUP_DIRECTION_RIGHT = 1
137ELM_CTXPOPUP_DIRECTION_LEFT = 2
138ELM_CTXPOPUP_DIRECTION_UP = 3
139ELM_CTXPOPUP_DIRECTION_UNKNOWN = 4
140
141# from efl.elementary.datetime_elm
142ELM_DATETIME_YEAR = 0
143ELM_DATETIME_MONTH = 1
144ELM_DATETIME_DATE = 2
145ELM_DATETIME_HOUR = 3
146ELM_DATETIME_MINUTE = 4
147ELM_DATETIME_AMPM = 5
148
149# from efl.elementary.calendar_elm
150ELM_DAY_SUNDAY = 0
151ELM_DAY_MONDAY = 1
152ELM_DAY_TUESDAY = 2
153ELM_DAY_WEDNESDAY = 3
154ELM_DAY_THURSDAY = 4
155ELM_DAY_FRIDAY = 5
156ELM_DAY_SATURDAY = 6
157ELM_DAY_LAST = 7
158
159# from efl.elementary.dayselector
160ELM_DAYSELECTOR_SUN = 0
161ELM_DAYSELECTOR_MON = 1
162ELM_DAYSELECTOR_TUE = 2
163ELM_DAYSELECTOR_WED = 3
164ELM_DAYSELECTOR_THU = 4
165ELM_DAYSELECTOR_FRI = 5
166ELM_DAYSELECTOR_SAT = 6
167
168# from efl.elementary.fileselector
169ELM_FILESELECTOR_LIST = 0
170ELM_FILESELECTOR_GRID = 1
171
172# from efl.elementary.flip
173ELM_FLIP_DIRECTION_UP = 0
174ELM_FLIP_DIRECTION_DOWN = 1
175ELM_FLIP_DIRECTION_LEFT = 2
176ELM_FLIP_DIRECTION_RIGHT = 3
177
178ELM_FLIP_INTERACTION_NONE = 0
179ELM_FLIP_INTERACTION_ROTATE = 1
180ELM_FLIP_INTERACTION_CUBE = 2
181ELM_FLIP_INTERACTION_PAGE = 3
182
183ELM_FLIP_ROTATE_Y_CENTER_AXIS = 0
184ELM_FLIP_ROTATE_X_CENTER_AXIS = 1
185ELM_FLIP_ROTATE_XZ_CENTER_AXIS = 2
186ELM_FLIP_ROTATE_YZ_CENTER_AXIS = 3
187
188ELM_FLIP_CUBE_LEFT = 4
189ELM_FLIP_CUBE_RIGHT = 5
190ELM_FLIP_CUBE_UP = 6
191ELM_FLIP_CUBE_DOWN = 7
192
193ELM_FLIP_PAGE_LEFT = 8
194ELM_FLIP_PAGE_RIGHT = 9
195ELM_FLIP_PAGE_UP = 10
196ELM_FLIP_PAGE_DOWN = 11
197
198# from efl.elementary.object
199ELM_FOCUS_PREVIOUS = 0
200ELM_FOCUS_NEXT = 1
201
202# from efl.elementary.genlist
203ELM_GENLIST_ITEM_NONE = 0
204ELM_GENLIST_ITEM_TREE = 1
205ELM_GENLIST_ITEM_GROUP = 2
206ELM_GENLIST_ITEM_MAX = 3
207
208ELM_GENLIST_ITEM_FIELD_ALL = 0
209ELM_GENLIST_ITEM_FIELD_TEXT = 1
210ELM_GENLIST_ITEM_FIELD_CONTENT = 2
211ELM_GENLIST_ITEM_FIELD_STATE = 3
212
213# from efl.elementary.gesture_layer
214ELM_GESTURE_STATE_UNDEFINED = -1
215ELM_GESTURE_STATE_START = 0
216ELM_GESTURE_STATE_MOVE = 1
217ELM_GESTURE_STATE_END = 2
218ELM_GESTURE_STATE_ABORT = 3
219
220ELM_GESTURE_FIRST = 0
221ELM_GESTURE_N_TAPS = 1
222ELM_GESTURE_N_LONG_TAPS = 2
223ELM_GESTURE_N_DOUBLE_TAPS = 3
224ELM_GESTURE_N_TRIPLE_TAPS = 4
225ELM_GESTURE_MOMENTUM = 5
226ELM_GESTURE_N_LINES = 6
227ELM_GESTURE_N_FLICKS = 7
228ELM_GESTURE_ZOOM = 8
229ELM_GESTURE_ROTATE = 9
230
231# from efl.elementary.hover
232ELM_HOVER_AXIS_NONE = 0
233ELM_HOVER_AXIS_HORIZONTAL = 1
234ELM_HOVER_AXIS_VERTICAL = 2
235ELM_HOVER_AXIS_BOTH = 3
236
237# from efl.elementary.icon
238ELM_ICON_NONE = 0
239ELM_ICON_FILE = 1
240ELM_ICON_STANDARD = 2
241
242# from object
243# ELM_ILLUME_COMMAND_FOCUS_BACK = 0
244# ELM_ILLUME_COMMAND_FOCUS_FORWARD = 1
245# ELM_ILLUME_COMMAND_FOCUS_HOME = 2
246# ELM_ILLUME_COMMAND_CLOSE = 3
247
248# from efl.elementary.image
249ELM_IMAGE_ORIENT_NONE = 0
250ELM_IMAGE_ORIENT_0 = 0
251ELM_IMAGE_ROTATE_90 = 1
252ELM_IMAGE_ROTATE_180 = 2
253ELM_IMAGE_ROTATE_270 = 3
254ELM_IMAGE_FLIP_HORIZONTAL = 4
255ELM_IMAGE_FLIP_VERTICAL = 5
256ELM_IMAGE_FLIP_TRANSPOSE = 6
257ELM_IMAGE_FLIP_TRANSVERSE = 7
258
259# from efl.elementary.entry
260ELM_INPUT_PANEL_LANG_AUTOMATIC = 0
261ELM_INPUT_PANEL_LANG_ALPHABET = 1
262
263ELM_INPUT_PANEL_LAYOUT_NORMAL = 0
264ELM_INPUT_PANEL_LAYOUT_NUMBER = 1
265ELM_INPUT_PANEL_LAYOUT_EMAIL = 2
266ELM_INPUT_PANEL_LAYOUT_URL = 3
267ELM_INPUT_PANEL_LAYOUT_PHONENUMBER = 4
268ELM_INPUT_PANEL_LAYOUT_IP = 5
269ELM_INPUT_PANEL_LAYOUT_MONTH = 6
270ELM_INPUT_PANEL_LAYOUT_NUMBERONLY = 7
271ELM_INPUT_PANEL_LAYOUT_INVALID = 8
272ELM_INPUT_PANEL_LAYOUT_HEX = 9
273ELM_INPUT_PANEL_LAYOUT_TERMINAL = 10
274ELM_INPUT_PANEL_LAYOUT_PASSWORD = 11
275
276ELM_INPUT_PANEL_RETURN_KEY_TYPE_DEFAULT = 0
277ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE = 1
278ELM_INPUT_PANEL_RETURN_KEY_TYPE_GO = 2
279ELM_INPUT_PANEL_RETURN_KEY_TYPE_JOIN = 3
280ELM_INPUT_PANEL_RETURN_KEY_TYPE_LOGIN = 4
281ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT = 5
282ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEARCH = 6
283ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEND = 7
284
285# from efl.elementary.label
286ELM_LABEL_SLIDE_MODE_NONE = 0
287ELM_LABEL_SLIDE_MODE_AUTO = 1
288ELM_LABEL_SLIDE_MODE_ALWAYS = 2
289
290# from efl.elementary.list
291ELM_LIST_COMPRESS = 0
292ELM_LIST_SCROLL = 1
293ELM_LIST_LIMIT = 2
294
295# from efl.elementary.map
296ELM_MAP_OVERLAY_TYPE_NONE = 0
297ELM_MAP_OVERLAY_TYPE_DEFAULT = 1
298ELM_MAP_OVERLAY_TYPE_CLASS = 2
299ELM_MAP_OVERLAY_TYPE_GROUP = 3
300ELM_MAP_OVERLAY_TYPE_BUBBLE = 4
301ELM_MAP_OVERLAY_TYPE_ROUTE = 5
302ELM_MAP_OVERLAY_TYPE_LINE = 6
303ELM_MAP_OVERLAY_TYPE_POLYGON = 7
304ELM_MAP_OVERLAY_TYPE_CIRCLE = 8
305ELM_MAP_OVERLAY_TYPE_SCALE = 9
306
307ELM_MAP_ROUTE_METHOD_FASTEST = 0
308ELM_MAP_ROUTE_METHOD_SHORTEST = 1
309ELM_MAP_ROUTE_METHOD_LAST = 2
310
311ELM_MAP_ROUTE_TYPE_MOTOCAR = 0
312ELM_MAP_ROUTE_TYPE_BICYCLE = 1
313ELM_MAP_ROUTE_TYPE_FOOT = 2
314ELM_MAP_ROUTE_TYPE_LAST = 3
315
316ELM_MAP_SOURCE_TYPE_TILE = 0
317ELM_MAP_SOURCE_TYPE_ROUTE = 1
318ELM_MAP_SOURCE_TYPE_NAME = 2
319ELM_MAP_SOURCE_TYPE_LAST = 3
320
321ELM_MAP_ZOOM_MODE_MANUAL = 0
322ELM_MAP_ZOOM_MODE_AUTO_FIT = 1
323ELM_MAP_ZOOM_MODE_AUTO_FILL = 2
324ELM_MAP_ZOOM_MODE_LAST = 3
325
326# from efl.elementary.notify
327ELM_NOTIFY_ORIENT_TOP = 0
328ELM_NOTIFY_ORIENT_CENTER = 1
329ELM_NOTIFY_ORIENT_BOTTOM = 2
330ELM_NOTIFY_ORIENT_LEFT = 3
331ELM_NOTIFY_ORIENT_RIGHT = 4
332ELM_NOTIFY_ORIENT_TOP_LEFT = 5
333ELM_NOTIFY_ORIENT_TOP_RIGHT = 6
334ELM_NOTIFY_ORIENT_BOTTOM_LEFT = 7
335ELM_NOTIFY_ORIENT_BOTTOM_RIGHT = 8
336
337# from efl.elementary.list
338ELM_OBJECT_SELECT_MODE_DEFAULT = 0
339ELM_OBJECT_SELECT_MODE_ALWAYS = 1
340ELM_OBJECT_SELECT_MODE_NONE = 2
341ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY = 3
342ELM_OBJECT_SELECT_MODE_MAX = 4
343
344# from efl.elementary.panel
345ELM_PANEL_ORIENT_TOP = 0
346ELM_PANEL_ORIENT_BOTTOM = 1
347ELM_PANEL_ORIENT_LEFT = 2
348ELM_PANEL_ORIENT_RIGHT = 3
349
350# from efl.elementary.photocam
351ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0
352ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT = 1
353ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL = 2
354ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN = 3
355
356# from efl.elementary.general
357ELM_POLICY_QUIT = 0
358ELM_POLICY_EXIT = 1
359ELM_POLICY_LAST = 2
360
361ELM_POLICY_QUIT_NONE = 0
362ELM_POLICY_QUIT_LAST_WINDOW_CLOSED = 1
363
364# from efl.elementary.popup
365ELM_POPUP_ORIENT_TOP = 0
366ELM_POPUP_ORIENT_CENTER = 1
367ELM_POPUP_ORIENT_BOTTOM = 2
368ELM_POPUP_ORIENT_LEFT = 3
369ELM_POPUP_ORIENT_RIGHT = 4
370ELM_POPUP_ORIENT_TOP_LEFT = 5
371ELM_POPUP_ORIENT_TOP_RIGHT = 6
372ELM_POPUP_ORIENT_BOTTOM_LEFT = 7
373ELM_POPUP_ORIENT_BOTTOM_RIGHT = 8
374
375# from efl.elementary.scroller
376ELM_SCROLLER_POLICY_AUTO = 0
377ELM_SCROLLER_POLICY_ON = 1
378ELM_SCROLLER_POLICY_OFF = 2
379
380# from efl.elementary.entry
381ELM_TEXT_FORMAT_PLAIN_UTF8 = 0
382ELM_TEXT_FORMAT_MARKUP_UTF8 = 1
383
384# from efl.elementary.toolbar
385ELM_TOOLBAR_SHRINK_NONE = 0
386ELM_TOOLBAR_SHRINK_HIDE = 1
387ELM_TOOLBAR_SHRINK_SCROLL = 2
388ELM_TOOLBAR_SHRINK_MENU = 3
389ELM_TOOLBAR_SHRINK_EXPAND = 4
390ELM_TOOLBAR_SHRINK_LAST = 5
391
392# from efl.elementary.web
393ELM_WEB_WINDOW_FEATURE_TOOLBAR = 0
394ELM_WEB_WINDOW_FEATURE_STATUSBAR = 1
395ELM_WEB_WINDOW_FEATURE_SCROLLBARS = 2
396ELM_WEB_WINDOW_FEATURE_MENUBAR = 3
397ELM_WEB_WINDOW_FEATURE_LOCATIONBAR = 4
398ELM_WEB_WINDOW_FEATURE_FULLSCREEN = 5
399
400ELM_WEB_ZOOM_MODE_MANUAL = 0
401ELM_WEB_ZOOM_MODE_AUTO_FIT = 1
402ELM_WEB_ZOOM_MODE_AUTO_FILL = 2
403
404# from efl.elementary.window
405ELM_WIN_BASIC = 0
406ELM_WIN_DIALOG_BASIC = 1
407ELM_WIN_DESKTOP = 2
408ELM_WIN_DOCK = 3
409ELM_WIN_TOOLBAR = 4
410ELM_WIN_MENU = 5
411ELM_WIN_UTILITY = 6
412ELM_WIN_SPLASH = 7
413ELM_WIN_DROPDOWN_MENU = 8
414ELM_WIN_POPUP_MENU = 9
415ELM_WIN_TOOLTIP = 10
416ELM_WIN_NOTIFICATION = 11
417ELM_WIN_COMBO = 12
418ELM_WIN_DND = 13
419ELM_WIN_INLINED_IMAGE = 14
420ELM_WIN_SOCKET_IMAGE = 15
421
422ELM_WIN_INDICATOR_UNKNOWN = 0
423ELM_WIN_INDICATOR_HIDE = 1
424ELM_WIN_INDICATOR_SHOW = 2
425
426ELM_WIN_INDICATOR_OPACITY_UNKNOWN = 0
427ELM_WIN_INDICATOR_OPAQUE = 1
428ELM_WIN_INDICATOR_TRANSLUCENT = 2
429ELM_WIN_INDICATOR_TRANSPARENT = 3
430
431ELM_WIN_KEYBOARD_UNKNOWN = 0
432ELM_WIN_KEYBOARD_OFF = 1
433ELM_WIN_KEYBOARD_ON = 2
434ELM_WIN_KEYBOARD_ALPHA = 3
435ELM_WIN_KEYBOARD_NUMERIC = 4
436ELM_WIN_KEYBOARD_PIN = 5
437ELM_WIN_KEYBOARD_PHONE_NUMBER = 6
438ELM_WIN_KEYBOARD_HEX = 7
439ELM_WIN_KEYBOARD_TERMINAL = 8
440ELM_WIN_KEYBOARD_PASSWORD = 9
441ELM_WIN_KEYBOARD_IP = 10
442ELM_WIN_KEYBOARD_HOST = 11
443ELM_WIN_KEYBOARD_FILE = 12
444ELM_WIN_KEYBOARD_URL = 13
445ELM_WIN_KEYBOARD_KEYPAD = 14
446ELM_WIN_KEYBOARD_J2ME = 15
447
448# from efl.elementary.label
449ELM_WRAP_NONE = 0
450ELM_WRAP_CHAR = 1
451ELM_WRAP_WORD = 2
452ELM_WRAP_MIXED = 3
458 453
459#init() 454#init()
460 455
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index d866ff2..c9a552f 100644
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -2,8 +2,19 @@
2# encoding: utf-8 2# encoding: utf-8
3 3
4import os 4import os
5from efl import elementary 5
6from efl import evas 6from efl import evas
7from efl import elementary
8from efl.elementary.window import Window
9from efl.elementary.background import Background
10from efl.elementary.box import Box
11from efl.elementary.button import Button
12from efl.elementary.frame import Frame
13from efl.elementary.label import Label
14from efl.elementary.check import Check
15from efl.elementary.entry import Entry
16from efl.elementary.scroller import Scroller
17
7 18
8from test_3d import evas3d_clicked 19from test_3d import evas3d_clicked
9from test_actionslider import actionslider_clicked 20from test_actionslider import actionslider_clicked
@@ -213,14 +224,14 @@ items = [
213def menu_create(search, win): 224def menu_create(search, win):
214 tbx.clear() 225 tbx.clear()
215 for category in items: 226 for category in items:
216 frame = elementary.Frame(win) 227 frame = Frame(win)
217 frame.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 228 frame.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
218 frame.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 229 frame.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
219 frame.text = category[0] 230 frame.text = category[0]
220 frame.show() 231 frame.show()
221 tbx.pack_end(frame) 232 tbx.pack_end(frame)
222 233
223 tbx2 = elementary.Box(win) 234 tbx2 = Box(win)
224 tbx2.layout_set(elementary.ELM_BOX_LAYOUT_FLOW_HORIZONTAL) 235 tbx2.layout_set(elementary.ELM_BOX_LAYOUT_FLOW_HORIZONTAL)
225 tbx2.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 236 tbx2.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
226 tbx2.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 237 tbx2.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
@@ -230,7 +241,7 @@ def menu_create(search, win):
230 cnt = 0 241 cnt = 0
231 for test in category[1]: 242 for test in category[1]:
232 if (search == None) or (test[0].lower().find(search.lower()) > -1): 243 if (search == None) or (test[0].lower().find(search.lower()) > -1):
233 bt = elementary.Button(win) 244 bt = Button(win)
234 bt.text = test[0] 245 bt.text = test[0]
235 bt.callback_clicked_add(test[1]) 246 bt.callback_clicked_add(test[1])
236 bt.show() 247 bt.show()
@@ -254,52 +265,52 @@ def cb_filter(en, win):
254 265
255if __name__ == "__main__": 266if __name__ == "__main__":
256 elementary.init() 267 elementary.init()
257 win = elementary.Window("test", elementary.ELM_WIN_BASIC) 268 win = Window("test", elementary.ELM_WIN_BASIC)
258 win.title_set("python-elementary test application") 269 win.title_set("python-elementary test application")
259 win.callback_delete_request_add(destroy, "test1", "test2", str3="test3", str4="test4") 270 win.callback_delete_request_add(destroy, "test1", "test2", str3="test3", str4="test4")
260 271
261 bg = elementary.Background(win) 272 bg = Background(win)
262 win.resize_object_add(bg) 273 win.resize_object_add(bg)
263 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 274 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
264 bg.show() 275 bg.show()
265 276
266 box0 = elementary.Box(win) 277 box0 = Box(win)
267 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 278 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
268 win.resize_object_add(box0) 279 win.resize_object_add(box0)
269 box0.show() 280 box0.show()
270 281
271 fr = elementary.Frame(win) 282 fr = Frame(win)
272 fr.text_set("Information") 283 fr.text_set("Information")
273 box0.pack_end(fr) 284 box0.pack_end(fr)
274 fr.show() 285 fr.show()
275 286
276 lb = elementary.Label(win) 287 lb = Label(win)
277 lb.text_set("Please select a test from the list below<br>" 288 lb.text_set("Please select a test from the list below<br>"
278 "by clicking the test button to show the<br>" 289 "by clicking the test button to show the<br>"
279 "test window.") 290 "test window.")
280 fr.content_set(lb) 291 fr.content_set(lb)
281 lb.show() 292 lb.show()
282 293
283 tg = elementary.Check(win) 294 tg = Check(win)
284 tg.style = "toggle" 295 tg.style = "toggle"
285 tg.text = "UI-Mirroring:" 296 tg.text = "UI-Mirroring:"
286 tg.callback_changed_add(cb_mirroring) 297 tg.callback_changed_add(cb_mirroring)
287 box0.pack_end(tg) 298 box0.pack_end(tg)
288 tg.show() 299 tg.show()
289 300
290 bx1 = elementary.Box(win) 301 bx1 = Box(win)
291 bx1.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 302 bx1.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
292 bx1.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 303 bx1.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
293 bx1.horizontal_set(True) 304 bx1.horizontal_set(True)
294 box0.pack_end(bx1) 305 box0.pack_end(bx1)
295 bx1.show() 306 bx1.show()
296 307
297 lb = elementary.Label(win) 308 lb = Label(win)
298 lb.text_set("Filter:") 309 lb.text_set("Filter:")
299 bx1.pack_end(lb) 310 bx1.pack_end(lb)
300 lb.show() 311 lb.show()
301 312
302 en = elementary.Entry(win) 313 en = Entry(win)
303 en.single_line_set(True) 314 en.single_line_set(True)
304 en.scrollable_set(True) 315 en.scrollable_set(True)
305 en.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 316 en.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
@@ -309,14 +320,14 @@ if __name__ == "__main__":
309 en.show() 320 en.show()
310 en.focus_set(True) 321 en.focus_set(True)
311 322
312 sc = elementary.Scroller(win) 323 sc = Scroller(win)
313 sc.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 324 sc.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
314 sc.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 325 sc.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
315 sc.bounce_set(False, True) 326 sc.bounce_set(False, True)
316 sc.show() 327 sc.show()
317 box0.pack_end(sc) 328 box0.pack_end(sc)
318 329
319 tbx = elementary.Box(win) 330 tbx = Box(win)
320 tbx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 331 tbx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
321 tbx.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 332 tbx.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
322 sc.content_set(tbx) 333 sc.content_set(tbx)
diff --git a/examples/elementary/test_3d.py b/examples/elementary/test_3d.py
index ff2e224..fd9fc96 100644
--- a/examples/elementary/test_3d.py
+++ b/examples/elementary/test_3d.py
@@ -1,8 +1,17 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9# from efl.elementary.button import Button
10# from efl.elementary.frame import Frame
11# from efl.elementary.label import Label
12# from efl.elementary.check import Check
13# from efl.elementary.entry import Entry
14from efl.elementary.slider import Slider
6 15
7 16
8class Point(object): 17class Point(object):
@@ -42,7 +51,7 @@ class Cube(object):
42 self.z0v = 0.0 51 self.z0v = 0.0
43 52
44 for i in range(6): 53 for i in range(6):
45 self.sides.append(Side(win.evas_get())) 54 self.sides.append(Side(win.evas))
46 55
47 w -= (w / 2) 56 w -= (w / 2)
48 h -= (h / 2) 57 h -= (h / 2)
@@ -149,25 +158,25 @@ def ch_z0(sl, cube):
149 cube.update() 158 cube.update()
150 159
151def evas3d_clicked(obj, item=None): 160def evas3d_clicked(obj, item=None):
152 win = elementary.Window("evas3d", elementary.ELM_WIN_BASIC) 161 win = Window("evas3d", elementary.ELM_WIN_BASIC)
153 win.title_set("Evas 3d test") 162 win.title_set("Evas 3d test")
154 win.autodel_set(True) 163 win.autodel_set(True)
155 if obj is None: 164 if obj is None:
156 win.callback_delete_request_add(lambda o: elementary.exit()) 165 win.callback_delete_request_add(lambda o: elementary.exit())
157 166
158 bg = elementary.Background(win) 167 bg = Background(win)
159 win.resize_object_add(bg) 168 win.resize_object_add(bg)
160 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 169 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
161 bg.show() 170 bg.show()
162 171
163 cube = Cube(win, 240, 240, 240) 172 cube = Cube(win, 240, 240, 240)
164 173
165 vbox = elementary.Box(win) 174 vbox = Box(win)
166 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 175 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
167 win.resize_object_add(vbox) 176 win.resize_object_add(vbox)
168 vbox.show() 177 vbox.show()
169 178
170 sl = elementary.Slider(win) 179 sl = Slider(win)
171 sl.text = "Rot X" 180 sl.text = "Rot X"
172 sl.unit_format = "%1.0f units" 181 sl.unit_format = "%1.0f units"
173 sl.span_size = 360 182 sl.span_size = 360
@@ -178,7 +187,7 @@ def evas3d_clicked(obj, item=None):
178 sl.callback_changed_add(ch_rot_x, cube) 187 sl.callback_changed_add(ch_rot_x, cube)
179 sl.show() 188 sl.show()
180 189
181 sl = elementary.Slider(win) 190 sl = Slider(win)
182 sl.text = "Rot Y" 191 sl.text = "Rot Y"
183 sl.unit_format = "%1.0f units" 192 sl.unit_format = "%1.0f units"
184 sl.span_size = 360 193 sl.span_size = 360
@@ -189,7 +198,7 @@ def evas3d_clicked(obj, item=None):
189 sl.callback_changed_add(ch_rot_y, cube) 198 sl.callback_changed_add(ch_rot_y, cube)
190 sl.show() 199 sl.show()
191 200
192 sl = elementary.Slider(win) 201 sl = Slider(win)
193 sl.text = "Rot Z" 202 sl.text = "Rot Z"
194 sl.unit_format = "%1.0f units" 203 sl.unit_format = "%1.0f units"
195 sl.span_size = 360 204 sl.span_size = 360
@@ -200,7 +209,7 @@ def evas3d_clicked(obj, item=None):
200 sl.callback_changed_add(ch_rot_z, cube) 209 sl.callback_changed_add(ch_rot_z, cube)
201 sl.show() 210 sl.show()
202 211
203 sl = elementary.Slider(win) 212 sl = Slider(win)
204 sl.text = "CX Off" 213 sl.text = "CX Off"
205 sl.unit_format = "%1.0f units" 214 sl.unit_format = "%1.0f units"
206 sl.span_size = 360 215 sl.span_size = 360
@@ -212,7 +221,7 @@ def evas3d_clicked(obj, item=None):
212 sl.callback_changed_add(ch_cx, cube) 221 sl.callback_changed_add(ch_cx, cube)
213 sl.show() 222 sl.show()
214 223
215 sl = elementary.Slider(win) 224 sl = Slider(win)
216 sl.text = "CY Off" 225 sl.text = "CY Off"
217 sl.unit_format = "%1.0f units" 226 sl.unit_format = "%1.0f units"
218 sl.span_size = 360 227 sl.span_size = 360
@@ -224,7 +233,7 @@ def evas3d_clicked(obj, item=None):
224 sl.callback_changed_add(ch_cy, cube) 233 sl.callback_changed_add(ch_cy, cube)
225 sl.show() 234 sl.show()
226 235
227 sl = elementary.Slider(win) 236 sl = Slider(win)
228 sl.text = "Foc" 237 sl.text = "Foc"
229 sl.unit_format = "%1.0f units" 238 sl.unit_format = "%1.0f units"
230 sl.span_size = 360 239 sl.span_size = 360
@@ -236,7 +245,7 @@ def evas3d_clicked(obj, item=None):
236 sl.callback_changed_add(ch_foc, cube) 245 sl.callback_changed_add(ch_foc, cube)
237 sl.show() 246 sl.show()
238 247
239 sl = elementary.Slider(win) 248 sl = Slider(win)
240 sl.text = "Z0" 249 sl.text = "Z0"
241 sl.unit_format = "%1.0f units" 250 sl.unit_format = "%1.0f units"
242 sl.span_size = 360 251 sl.span_size = 360
diff --git a/examples/elementary/test_actionslider.py b/examples/elementary/test_actionslider.py
index bc40e8d..4efe62a 100644
--- a/examples/elementary/test_actionslider.py
+++ b/examples/elementary/test_actionslider.py
@@ -1,8 +1,10 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
5from efl import elementary
6from efl.elementary.actionslider import Actionslider
7
6 8
7def _pos_selected_cb(obj, event_info): 9def _pos_selected_cb(obj, event_info):
8 print(("Selection: %s" % (event_info))) 10 print(("Selection: %s" % (event_info)))
@@ -82,7 +84,7 @@ def actionslider_clicked(obj):
82 win.resize_object_add(bx) 84 win.resize_object_add(bx)
83 bx.show() 85 bx.show()
84 86
85 acts = elementary.Actionslider(win) 87 acts = Actionslider(win)
86 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 88 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
87 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 89 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
88 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_RIGHT) 90 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_RIGHT)
@@ -96,7 +98,7 @@ def actionslider_clicked(obj):
96 bx.pack_end(acts) 98 bx.pack_end(acts)
97 acts.show() 99 acts.show()
98 100
99 acts = elementary.Actionslider(win) 101 acts = Actionslider(win)
100 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 102 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
101 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 103 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
102 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_CENTER) 104 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_CENTER)
@@ -109,7 +111,7 @@ def actionslider_clicked(obj):
109 bx.pack_end(acts) 111 bx.pack_end(acts)
110 acts.show() 112 acts.show()
111 113
112 acts = elementary.Actionslider(win) 114 acts = Actionslider(win)
113 acts.style_set("bar") 115 acts.style_set("bar")
114 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 116 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
115 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 117 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
@@ -123,7 +125,7 @@ def actionslider_clicked(obj):
123 bx.pack_end(acts) 125 bx.pack_end(acts)
124 acts.show() 126 acts.show()
125 127
126 acts = elementary.Actionslider(win) 128 acts = Actionslider(win)
127 acts.style_set("bar") 129 acts.style_set("bar")
128 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 130 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
129 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 131 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
@@ -138,7 +140,7 @@ def actionslider_clicked(obj):
138 bx.pack_end(acts) 140 bx.pack_end(acts)
139 acts.show() 141 acts.show()
140 142
141 acts = elementary.Actionslider(win) 143 acts = Actionslider(win)
142 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 144 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
143 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 145 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
144 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_LEFT) 146 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_LEFT)
@@ -151,7 +153,7 @@ def actionslider_clicked(obj):
151 bx.pack_end(acts) 153 bx.pack_end(acts)
152 acts.show() 154 acts.show()
153 155
154 acts = elementary.Actionslider(win) 156 acts = Actionslider(win)
155 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 157 acts.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
156 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 158 acts.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
157 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_CENTER) 159 acts.indicator_pos_set(elementary.ELM_ACTIONSLIDER_CENTER)
diff --git a/examples/elementary/test_bg.py b/examples/elementary/test_bg.py
index 5900652..5e18d10 100644
--- a/examples/elementary/test_bg.py
+++ b/examples/elementary/test_bg.py
@@ -2,16 +2,22 @@
2# encoding: utf-8 2# encoding: utf-8
3 3
4 4
5from efl import elementary
6from efl import evas 5from efl import evas
6from efl import elementary
7from efl.elementary.window import Window
8from efl.elementary.background import Background
9from efl.elementary.box import Box
10from efl.elementary.frame import Frame
11from efl.elementary.label import Label
12from efl.elementary.list import List
7 13
8 14
9def bg_plain_clicked(obj, item=None): 15def bg_plain_clicked(obj, item=None):
10 win = elementary.Window("bg plain", elementary.ELM_WIN_BASIC) 16 win = Window("bg plain", elementary.ELM_WIN_BASIC)
11 win.title_set("Bg Plain") 17 win.title_set("Bg Plain")
12 win.autodel_set(True) 18 win.autodel_set(True)
13 19
14 bg = elementary.Background(win) 20 bg = Background(win)
15 win.resize_object_add(bg) 21 win.resize_object_add(bg)
16 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 22 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
17 bg.show() 23 bg.show()
@@ -21,11 +27,11 @@ def bg_plain_clicked(obj, item=None):
21 27
22 28
23def bg_image_clicked(obj, item=None): 29def bg_image_clicked(obj, item=None):
24 win = elementary.Window("bg-image", elementary.ELM_WIN_BASIC) 30 win = Window("bg-image", elementary.ELM_WIN_BASIC)
25 win.title_set("Bg Image") 31 win.title_set("Bg Image")
26 win.autodel_set(True) 32 win.autodel_set(True)
27 33
28 bg = elementary.Background(win) 34 bg = Background(win)
29 win.resize_object_add(bg) 35 win.resize_object_add(bg)
30 bg.file_set("images/plant_01.jpg") 36 bg.file_set("images/plant_01.jpg")
31 bg.option_set(elementary.ELM_BG_OPTION_SCALE) 37 bg.option_set(elementary.ELM_BG_OPTION_SCALE)
@@ -47,26 +53,26 @@ if __name__ == "__main__":
47 elementary.exit() 53 elementary.exit()
48 54
49 elementary.init() 55 elementary.init()
50 win = elementary.Window("test", elementary.ELM_WIN_BASIC) 56 win = Window("test", elementary.ELM_WIN_BASIC)
51 win.title_set("python-elementary test application") 57 win.title_set("python-elementary test application")
52 win.callback_delete_request_add(destroy) 58 win.callback_delete_request_add(destroy)
53 59
54 bg = elementary.Background(win) 60 bg = Background(win)
55 win.resize_object_add(bg) 61 win.resize_object_add(bg)
56 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 62 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
57 bg.show() 63 bg.show()
58 64
59 box0 = elementary.Box(win) 65 box0 = Box(win)
60 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 66 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
61 win.resize_object_add(box0) 67 win.resize_object_add(box0)
62 box0.show() 68 box0.show()
63 69
64 fr = elementary.Frame(win) 70 fr = Frame(win)
65 fr.text_set("Information") 71 fr.text_set("Information")
66 box0.pack_end(fr) 72 box0.pack_end(fr)
67 fr.show() 73 fr.show()
68 74
69 lb = elementary.Label(win) 75 lb = Label(win)
70 lb.text_set("Please select a test from the list below<br>" 76 lb.text_set("Please select a test from the list below<br>"
71 "by clicking the test button to show the<br>" 77 "by clicking the test button to show the<br>"
72 "test window.") 78 "test window.")
@@ -76,7 +82,7 @@ if __name__ == "__main__":
76 items = [("Bg Plain", bg_plain_clicked), 82 items = [("Bg Plain", bg_plain_clicked),
77 ("Bg Image", bg_image_clicked)] 83 ("Bg Image", bg_image_clicked)]
78 84
79 li = elementary.List(win) 85 li = List(win)
80 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 86 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
81 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 87 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
82 box0.pack_end(li) 88 box0.pack_end(li)
diff --git a/examples/elementary/test_box.py b/examples/elementary/test_box.py
index 535fa47..b1df880 100644
--- a/examples/elementary/test_box.py
+++ b/examples/elementary/test_box.py
@@ -1,40 +1,49 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.button import Button
10from efl.elementary.frame import Frame
11from efl.elementary.label import Label
12from efl.elementary.list import List
13from efl.elementary.icon import Icon
14from efl.elementary.separator import Separator
6 15
7 16
8def box_vert_clicked(obj, item=None): 17def box_vert_clicked(obj, item=None):
9 win = elementary.Window("box-vert", elementary.ELM_WIN_BASIC) 18 win = Window("box-vert", elementary.ELM_WIN_BASIC)
10 win.title_set("Box Vert") 19 win.title_set("Box Vert")
11 win.autodel_set(True) 20 win.autodel_set(True)
12 21
13 bg = elementary.Background(win) 22 bg = Background(win)
14 win.resize_object_add(bg) 23 win.resize_object_add(bg)
15 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 24 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
16 bg.show() 25 bg.show()
17 26
18 bx = elementary.Box(win) 27 bx = Box(win)
19 win.resize_object_add(bx) 28 win.resize_object_add(bx)
20 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 29 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
21 bx.show() 30 bx.show()
22 31
23 ic = elementary.Icon(win) 32 ic = Icon(win)
24 ic.file_set("images/logo_small.png") 33 ic.file_set("images/logo_small.png")
25 ic.resizable_set(0, 0) 34 ic.resizable_set(0, 0)
26 ic.size_hint_align_set(0.5, 0.5) 35 ic.size_hint_align_set(0.5, 0.5)
27 bx.pack_end(ic) 36 bx.pack_end(ic)
28 ic.show() 37 ic.show()
29 38
30 ic = elementary.Icon(win) 39 ic = Icon(win)
31 ic.file_set("images/logo_small.png") 40 ic.file_set("images/logo_small.png")
32 ic.resizable_set(0, 0) 41 ic.resizable_set(0, 0)
33 ic.size_hint_align_set(0.0, 0.5) 42 ic.size_hint_align_set(0.0, 0.5)
34 bx.pack_end(ic) 43 bx.pack_end(ic)
35 ic.show() 44 ic.show()
36 45
37 ic = elementary.Icon(win) 46 ic = Icon(win)
38 ic.file_set("images/logo_small.png") 47 ic.file_set("images/logo_small.png")
39 ic.resizable_set(0, 0) 48 ic.resizable_set(0, 0)
40 ic.size_hint_align_set(evas.EVAS_HINT_EXPAND, 0.5) 49 ic.size_hint_align_set(evas.EVAS_HINT_EXPAND, 0.5)
@@ -49,21 +58,21 @@ def boxvert2_del_cb(bt, bx):
49 bt.color_set(128, 64, 0, 128) 58 bt.color_set(128, 64, 0, 128)
50 59
51def box_vert2_clicked(obj, item=None): 60def box_vert2_clicked(obj, item=None):
52 win = elementary.Window("box-vert2", elementary.ELM_WIN_BASIC) 61 win = Window("box-vert2", elementary.ELM_WIN_BASIC)
53 win.title_set("Box Vert 2") 62 win.title_set("Box Vert 2")
54 win.autodel_set(True) 63 win.autodel_set(True)
55 64
56 bg = elementary.Background(win) 65 bg = Background(win)
57 win.resize_object_add(bg) 66 win.resize_object_add(bg)
58 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 67 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
59 bg.show() 68 bg.show()
60 69
61 bx = elementary.Box(win) 70 bx = Box(win)
62 win.resize_object_add(bx) 71 win.resize_object_add(bx)
63 bx.size_hint_weight_set(0.0, 0.0) 72 bx.size_hint_weight_set(0.0, 0.0)
64 bx.show() 73 bx.show()
65 74
66 bt = elementary.Button(win) 75 bt = Button(win)
67 bt.text_set("Button 1") 76 bt.text_set("Button 1")
68 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 77 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
69 bt.size_hint_weight_set(0.0, 0.0) 78 bt.size_hint_weight_set(0.0, 0.0)
@@ -71,7 +80,7 @@ def box_vert2_clicked(obj, item=None):
71 bx.pack_end(bt) 80 bx.pack_end(bt)
72 bt.show() 81 bt.show()
73 82
74 bt = elementary.Button(win) 83 bt = Button(win)
75 bt.text_set("Button 2") 84 bt.text_set("Button 2")
76 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 85 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
77 bt.size_hint_weight_set(0.0, 0.0) 86 bt.size_hint_weight_set(0.0, 0.0)
@@ -79,7 +88,7 @@ def box_vert2_clicked(obj, item=None):
79 bx.pack_end(bt) 88 bx.pack_end(bt)
80 bt.show() 89 bt.show()
81 90
82 bt = elementary.Button(win) 91 bt = Button(win)
83 bt.text_set("Button 3") 92 bt.text_set("Button 3")
84 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 93 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
85 bt.size_hint_weight_set(0.0, 0.0) 94 bt.size_hint_weight_set(0.0, 0.0)
@@ -87,7 +96,7 @@ def box_vert2_clicked(obj, item=None):
87 bx.pack_end(bt) 96 bx.pack_end(bt)
88 bt.show() 97 bt.show()
89 98
90 bt = elementary.Button(win) 99 bt = Button(win)
91 bt.text_set("Button 4") 100 bt.text_set("Button 4")
92 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 101 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
93 bt.size_hint_weight_set(0.0, 0.0) 102 bt.size_hint_weight_set(0.0, 0.0)
@@ -95,7 +104,7 @@ def box_vert2_clicked(obj, item=None):
95 bx.pack_end(bt) 104 bx.pack_end(bt)
96 bt.show() 105 bt.show()
97 106
98 bt = elementary.Button(win) 107 bt = Button(win)
99 bt.text_set("Button 5") 108 bt.text_set("Button 5")
100 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 109 bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
101 bt.size_hint_weight_set(0.0, 0.0) 110 bt.size_hint_weight_set(0.0, 0.0)
@@ -106,36 +115,36 @@ def box_vert2_clicked(obj, item=None):
106 win.show() 115 win.show()
107 116
108def box_horiz_clicked(obj, item=None): 117def box_horiz_clicked(obj, item=None):
109 win = elementary.Window("box-horiz", elementary.ELM_WIN_BASIC) 118 win = Window("box-horiz", elementary.ELM_WIN_BASIC)
110 win.title_set("Box Horiz") 119 win.title_set("Box Horiz")
111 win.autodel_set(True) 120 win.autodel_set(True)
112 121
113 bg = elementary.Background(win) 122 bg = Background(win)
114 win.resize_object_add(bg) 123 win.resize_object_add(bg)
115 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 124 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
116 bg.show() 125 bg.show()
117 126
118 bx = elementary.Box(win) 127 bx = Box(win)
119 bx.horizontal_set(True) 128 bx.horizontal_set(True)
120 win.resize_object_add(bx) 129 win.resize_object_add(bx)
121 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 130 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
122 bx.show() 131 bx.show()
123 132
124 ic = elementary.Icon(win) 133 ic = Icon(win)
125 ic.file_set("images/logo_small.png") 134 ic.file_set("images/logo_small.png")
126 ic.resizable_set(0, 0) 135 ic.resizable_set(0, 0)
127 ic.size_hint_align_set(0.5, 0.5) 136 ic.size_hint_align_set(0.5, 0.5)
128 bx.pack_end(ic) 137 bx.pack_end(ic)
129 ic.show() 138 ic.show()
130 139
131 ic = elementary.Icon(win) 140 ic = Icon(win)
132 ic.file_set("images/logo_small.png") 141 ic.file_set("images/logo_small.png")
133 ic.resizable_set(0, 0) 142 ic.resizable_set(0, 0)
134 ic.size_hint_align_set(0.5, 0.0) 143 ic.size_hint_align_set(0.5, 0.0)
135 bx.pack_end(ic) 144 bx.pack_end(ic)
136 ic.show() 145 ic.show()
137 146
138 ic = elementary.Icon(win) 147 ic = Icon(win)
139 ic.file_set("images/logo_small.png") 148 ic.file_set("images/logo_small.png")
140 ic.resizable_set(0, 0) 149 ic.resizable_set(0, 0)
141 ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND) 150 ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND)
@@ -161,55 +170,55 @@ def box_layout_button_cb(obj, box):
161 box.layout_set(current_layout) 170 box.layout_set(current_layout)
162 171
163def box_layout_clicked(obj, item=None): 172def box_layout_clicked(obj, item=None):
164 win = elementary.Window("box-layout", elementary.ELM_WIN_BASIC) 173 win = Window("box-layout", elementary.ELM_WIN_BASIC)
165 win.title_set("Box Layout") 174 win.title_set("Box Layout")
166 win.autodel_set(True) 175 win.autodel_set(True)
167 176
168 bg = elementary.Background(win) 177 bg = Background(win)
169 win.resize_object_add(bg) 178 win.resize_object_add(bg)
170 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 179 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
171 bg.show() 180 bg.show()
172 181
173 vbox = elementary.Box(win) 182 vbox = Box(win)
174 win.resize_object_add(vbox) 183 win.resize_object_add(vbox)
175 vbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 184 vbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
176 vbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 185 vbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
177 vbox.show() 186 vbox.show()
178 187
179 bx = elementary.Box(win) 188 bx = Box(win)
180 bx.layout_set(elementary.ELM_BOX_LAYOUT_HORIZONTAL) 189 bx.layout_set(elementary.ELM_BOX_LAYOUT_HORIZONTAL)
181 bx.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 190 bx.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
182 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 191 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
183 vbox.pack_end(bx) 192 vbox.pack_end(bx)
184 bx.show() 193 bx.show()
185 194
186 sep = elementary.Separator(win) 195 sep = Separator(win)
187 sep.horizontal_set(True) 196 sep.horizontal_set(True)
188 vbox.pack_end(sep) 197 vbox.pack_end(sep)
189 sep.show() 198 sep.show()
190 199
191 bt = elementary.Button(win) 200 bt = Button(win)
192 bt.text_set("layout: %s" % layout_list[current_layout]) 201 bt.text_set("layout: %s" % layout_list[current_layout])
193 bt.callback_clicked_add(box_layout_button_cb, bx) 202 bt.callback_clicked_add(box_layout_button_cb, bx)
194 vbox.pack_end(bt) 203 vbox.pack_end(bt)
195 bt.show() 204 bt.show()
196 205
197 for i in range(5): 206 for i in range(5):
198 ic = elementary.Icon(win) 207 ic = Icon(win)
199 ic.file_set("images/logo_small.png") 208 ic.file_set("images/logo_small.png")
200 ic.resizable_set(0, 0) 209 ic.resizable_set(0, 0)
201 ic.size_hint_align_set(0.5, 0.5) 210 ic.size_hint_align_set(0.5, 0.5)
202 bx.pack_end(ic) 211 bx.pack_end(ic)
203 ic.show() 212 ic.show()
204 213
205 ic = elementary.Icon(win) 214 ic = Icon(win)
206 ic.file_set("images/logo_small.png") 215 ic.file_set("images/logo_small.png")
207 ic.resizable_set(0, 0) 216 ic.resizable_set(0, 0)
208 ic.size_hint_align_set(1.0, 1.0) 217 ic.size_hint_align_set(1.0, 1.0)
209 bx.pack_end(ic) 218 bx.pack_end(ic)
210 ic.show() 219 ic.show()
211 220
212 ic = elementary.Icon(win) 221 ic = Icon(win)
213 ic.file_set("images/logo_small.png") 222 ic.file_set("images/logo_small.png")
214 ic.resizable_set(0, 0) 223 ic.resizable_set(0, 0)
215 ic.size_hint_align_set(0.0, 0.0) 224 ic.size_hint_align_set(0.0, 0.0)
@@ -230,41 +239,41 @@ def box_transition_button_cb(obj, box):
230 box.layout_transition(0.4, from_ly, current_layout) 239 box.layout_transition(0.4, from_ly, current_layout)
231 240
232def box_transition_clicked(obj, item=None): 241def box_transition_clicked(obj, item=None):
233 win = elementary.Window("box-layout-transition", elementary.ELM_WIN_BASIC) 242 win = Window("box-layout-transition", elementary.ELM_WIN_BASIC)
234 win.title_set("Box Layout Transition") 243 win.title_set("Box Layout Transition")
235 win.autodel_set(True) 244 win.autodel_set(True)
236 245
237 bg = elementary.Background(win) 246 bg = Background(win)
238 win.resize_object_add(bg) 247 win.resize_object_add(bg)
239 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 248 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
240 bg.show() 249 bg.show()
241 250
242 vbox = elementary.Box(win) 251 vbox = Box(win)
243 win.resize_object_add(vbox) 252 win.resize_object_add(vbox)
244 vbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 253 vbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
245 vbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 254 vbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
246 vbox.show() 255 vbox.show()
247 256
248 bx = elementary.Box(win) 257 bx = Box(win)
249 bx.layout_set(elementary.ELM_BOX_LAYOUT_HORIZONTAL) 258 bx.layout_set(elementary.ELM_BOX_LAYOUT_HORIZONTAL)
250 bx.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 259 bx.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
251 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 260 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
252 vbox.pack_end(bx) 261 vbox.pack_end(bx)
253 bx.show() 262 bx.show()
254 263
255 sep = elementary.Separator(win) 264 sep = Separator(win)
256 sep.horizontal_set(True) 265 sep.horizontal_set(True)
257 vbox.pack_end(sep) 266 vbox.pack_end(sep)
258 sep.show() 267 sep.show()
259 268
260 bt = elementary.Button(win) 269 bt = Button(win)
261 bt.text_set("layout: %s" % layout_list[current_layout]) 270 bt.text_set("layout: %s" % layout_list[current_layout])
262 bt.callback_clicked_add(box_transition_button_cb, bx) 271 bt.callback_clicked_add(box_transition_button_cb, bx)
263 vbox.pack_end(bt) 272 vbox.pack_end(bt)
264 bt.show() 273 bt.show()
265 274
266 for i in range(4): 275 for i in range(4):
267 ic = elementary.Icon(win) 276 ic = Icon(win)
268 ic.file_set("images/logo_small.png") 277 ic.file_set("images/logo_small.png")
269 ic.resizable_set(0, 0) 278 ic.resizable_set(0, 0)
270 ic.size_hint_align_set(0.5, 0.5) 279 ic.size_hint_align_set(0.5, 0.5)
@@ -280,26 +289,26 @@ if __name__ == "__main__":
280 elementary.exit() 289 elementary.exit()
281 290
282 elementary.init() 291 elementary.init()
283 win = elementary.Window("test", elementary.ELM_WIN_BASIC) 292 win = Window("test", elementary.ELM_WIN_BASIC)
284 win.title_set("python-elementary test application") 293 win.title_set("python-elementary test application")
285 win.callback_delete_request_add(destroy) 294 win.callback_delete_request_add(destroy)
286 295
287 bg = elementary.Background(win) 296 bg = Background(win)
288 win.resize_object_add(bg) 297 win.resize_object_add(bg)
289 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 298 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
290 bg.show() 299 bg.show()
291 300
292 box0 = elementary.Box(win) 301 box0 = Box(win)
293 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 302 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
294 win.resize_object_add(box0) 303 win.resize_object_add(box0)
295 box0.show() 304 box0.show()
296 305
297 fr = elementary.Frame(win) 306 fr = Frame(win)
298 fr.text_set("Information") 307 fr.text_set("Information")
299 box0.pack_end(fr) 308 box0.pack_end(fr)
300 fr.show() 309 fr.show()
301 310
302 lb = elementary.Label(win) 311 lb = Label(win)
303 lb.text_set("Please select a test from the list below<br>" 312 lb.text_set("Please select a test from the list below<br>"
304 "by clicking the test button to show the<br>" 313 "by clicking the test button to show the<br>"
305 "test window.") 314 "test window.")
@@ -312,7 +321,7 @@ if __name__ == "__main__":
312 ("Box Layout", box_layout_clicked), 321 ("Box Layout", box_layout_clicked),
313 ("Box Layout Transition", box_transition_clicked)] 322 ("Box Layout Transition", box_transition_clicked)]
314 323
315 li = elementary.List(win) 324 li = List(win)
316 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 325 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
317 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 326 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
318 box0.pack_end(li) 327 box0.pack_end(li)
diff --git a/examples/elementary/test_bubble.py b/examples/elementary/test_bubble.py
index af9fd0c..944bb59 100644
--- a/examples/elementary/test_bubble.py
+++ b/examples/elementary/test_bubble.py
@@ -1,34 +1,41 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.frame import Frame
10from efl.elementary.icon import Icon
11from efl.elementary.label import Label
12from efl.elementary.list import List
13from efl.elementary.bubble import Bubble
7 14
8def bubble_clicked(obj, item=None): 15def bubble_clicked(obj, item=None):
9 win = elementary.Window("bubble", elementary.ELM_WIN_BASIC) 16 win = Window("bubble", elementary.ELM_WIN_BASIC)
10 win.title_set("Bubble") 17 win.title_set("Bubble")
11 win.autodel_set(True) 18 win.autodel_set(True)
12 19
13 bg = elementary.Background(win) 20 bg = Background(win)
14 win.resize_object_add(bg) 21 win.resize_object_add(bg)
15 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 22 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
16 bg.show() 23 bg.show()
17 24
18 bx = elementary.Box(win) 25 bx = Box(win)
19 win.resize_object_add(bx) 26 win.resize_object_add(bx)
20 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 27 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
21 bx.show() 28 bx.show()
22 29
23 # bb 1 30 # bb 1
24 ic = elementary.Icon(win) 31 ic = Icon(win)
25 ic.file_set("images/logo_small.png") 32 ic.file_set("images/logo_small.png")
26 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 33 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
27 34
28 lb = elementary.Label(win) 35 lb = Label(win)
29 lb.text_set("Blah, Blah, Blah") 36 lb.text_set("Blah, Blah, Blah")
30 37
31 bb = elementary.Bubble(win) 38 bb = Bubble(win)
32 bb.text_set("Message 1") 39 bb.text_set("Message 1")
33 bb.part_text_set("info", "Corner: top_left") 40 bb.part_text_set("info", "Corner: top_left")
34 bb.content_set(lb) 41 bb.content_set(lb)
@@ -40,14 +47,14 @@ def bubble_clicked(obj, item=None):
40 bb.show() 47 bb.show()
41 48
42 # bb 2 49 # bb 2
43 ic = elementary.Icon(win) 50 ic = Icon(win)
44 ic.file_set("images/logo_small.png") 51 ic.file_set("images/logo_small.png")
45 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 52 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
46 53
47 lb = elementary.Label(win) 54 lb = Label(win)
48 lb.text_set("Blah, Blah, Blah") 55 lb.text_set("Blah, Blah, Blah")
49 56
50 bb = elementary.Bubble(win) 57 bb = Bubble(win)
51 bb.text_set("Message 2") 58 bb.text_set("Message 2")
52 bb.part_text_set("info", "Corner: top_right") 59 bb.part_text_set("info", "Corner: top_right")
53 bb.content_set(lb) 60 bb.content_set(lb)
@@ -59,14 +66,14 @@ def bubble_clicked(obj, item=None):
59 bb.show() 66 bb.show()
60 67
61 # bb 3 68 # bb 3
62 ic = elementary.Icon(win) 69 ic = Icon(win)
63 ic.file_set("images/logo_small.png") 70 ic.file_set("images/logo_small.png")
64 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 71 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
65 72
66 lb = elementary.Label(win) 73 lb = Label(win)
67 lb.text_set("Blah, Blah, Blah") 74 lb.text_set("Blah, Blah, Blah")
68 75
69 bb = elementary.Bubble(win) 76 bb = Bubble(win)
70 bb.text_set("Message 3") 77 bb.text_set("Message 3")
71 bb.part_text_set("info", "Corner: bottom_left") 78 bb.part_text_set("info", "Corner: bottom_left")
72 bb.content_set(ic) 79 bb.content_set(ic)
@@ -77,14 +84,14 @@ def bubble_clicked(obj, item=None):
77 bb.show() 84 bb.show()
78 85
79 # bb 4 86 # bb 4
80 ic = elementary.Icon(win) 87 ic = Icon(win)
81 ic.file_set("images/logo_small.png") 88 ic.file_set("images/logo_small.png")
82 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 89 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
83 90
84 lb = elementary.Label(win) 91 lb = Label(win)
85 lb.text_set("Blah, Blah, Blah") 92 lb.text_set("Blah, Blah, Blah")
86 93
87 bb = elementary.Bubble(win) 94 bb = Bubble(win)
88 bb.text_set("Message 4") 95 bb.text_set("Message 4")
89 bb.part_text_set("info", "Corner: bottom_right") 96 bb.part_text_set("info", "Corner: bottom_right")
90 bb.content_set(lb) 97 bb.content_set(lb)
@@ -104,26 +111,26 @@ if __name__ == "__main__":
104 elementary.exit() 111 elementary.exit()
105 112
106 elementary.init() 113 elementary.init()
107 win = elementary.Window("test", elementary.ELM_WIN_BASIC) 114 win = Window("test", elementary.ELM_WIN_BASIC)
108 win.title_set("python-elementary test application") 115 win.title_set("python-elementary test application")
109 win.callback_delete_request_add(destroy) 116 win.callback_delete_request_add(destroy)
110 117
111 bg = elementary.Background(win) 118 bg = Background(win)
112 win.resize_object_add(bg) 119 win.resize_object_add(bg)
113 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 120 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
114 bg.show() 121 bg.show()
115 122
116 box0 = elementary.Box(win) 123 box0 = Box(win)
117 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 124 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
118 win.resize_object_add(box0) 125 win.resize_object_add(box0)
119 box0.show() 126 box0.show()
120 127
121 fr = elementary.Frame(win) 128 fr = Frame(win)
122 fr.text_set("Information") 129 fr.text_set("Information")
123 box0.pack_end(fr) 130 box0.pack_end(fr)
124 fr.show() 131 fr.show()
125 132
126 lb = elementary.Label(win) 133 lb = Label(win)
127 lb.text_set("Please select a test from the list below<br>" 134 lb.text_set("Please select a test from the list below<br>"
128 "by clicking the test button to show the<br>" 135 "by clicking the test button to show the<br>"
129 "test window.") 136 "test window.")
@@ -133,7 +140,7 @@ if __name__ == "__main__":
133 items = [("Bubble", bubble_clicked), 140 items = [("Bubble", bubble_clicked),
134 ] 141 ]
135 142
136 li = elementary.List(win) 143 li = List(win)
137 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 144 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
138 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 145 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
139 box0.pack_end(li) 146 box0.pack_end(li)
diff --git a/examples/elementary/test_button.py b/examples/elementary/test_button.py
index d8576aa..fca3430 100644
--- a/examples/elementary/test_button.py
+++ b/examples/elementary/test_button.py
@@ -1,57 +1,62 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.frame import Frame
10from efl.elementary.icon import Icon
11from efl.elementary.button import Button
7 12
8def buttons_clicked(obj): 13def buttons_clicked(obj):
9 win = elementary.Window("buttons", elementary.ELM_WIN_BASIC) 14 win = Window("buttons", elementary.ELM_WIN_BASIC)
10 win.title_set("Buttons") 15 win.title_set("Buttons")
11 win.focus_highlight_enabled_set(True) 16 win.focus_highlight_enabled_set(True)
12 win.autodel_set(True) 17 win.autodel_set(True)
13 if obj is None: 18 if obj is None:
14 win.callback_delete_request_add(lambda o: elementary.exit()) 19 win.callback_delete_request_add(lambda o: elementary.exit())
15 20
16 bg = elementary.Background(win) 21 bg = Background(win)
17 win.resize_object_add(bg) 22 win.resize_object_add(bg)
18 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 23 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
19 bg.show() 24 bg.show()
20 25
21 bx = elementary.Box(win) 26 bx = Box(win)
22 win.resize_object_add(bx) 27 win.resize_object_add(bx)
23 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 28 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
24 bx.show() 29 bx.show()
25 30
26 ic = elementary.Icon(win) 31 ic = Icon(win)
27 ic.file_set("images/logo_small.png") 32 ic.file_set("images/logo_small.png")
28 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 33 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
29 bt = elementary.Button(win) 34 bt = Button(win)
30 bt.text_set("Icon sized to button") 35 bt.text_set("Icon sized to button")
31 bt.content_set(ic) 36 bt.content_set(ic)
32 bx.pack_end(bt) 37 bx.pack_end(bt)
33 bt.show() 38 bt.show()
34 ic.show() 39 ic.show()
35 40
36 ic = elementary.Icon(win) 41 ic = Icon(win)
37 ic.file_set("images/logo_small.png") 42 ic.file_set("images/logo_small.png")
38 ic.resizable_set(0, 0) 43 ic.resizable_set(0, 0)
39 bt = elementary.Button(win) 44 bt = Button(win)
40 bt.text_set("Icon no scale") 45 bt.text_set("Icon no scale")
41 bt.content_set(ic) 46 bt.content_set(ic)
42 bx.pack_end(bt) 47 bx.pack_end(bt)
43 bt.show() 48 bt.show()
44 ic.show() 49 ic.show()
45 50
46 bt = elementary.Button(win) 51 bt = Button(win)
47 bt.text_set("No icon") 52 bt.text_set("No icon")
48 bx.pack_end(bt) 53 bx.pack_end(bt)
49 bt.show() 54 bt.show()
50 55
51 ic = elementary.Icon(win) 56 ic = Icon(win)
52 ic.file_set("images/logo_small.png") 57 ic.file_set("images/logo_small.png")
53 ic.resizable_set(0, 0) 58 ic.resizable_set(0, 0)
54 bt = elementary.Button(win) 59 bt = Button(win)
55 bt.content_set(ic) 60 bt.content_set(ic)
56 bx.pack_end(bt) 61 bx.pack_end(bt)
57 bt.show() 62 bt.show()
diff --git a/examples/elementary/test_calendar.py b/examples/elementary/test_calendar.py
index 7d5e338..8fc1884 100644
--- a/examples/elementary/test_calendar.py
+++ b/examples/elementary/test_calendar.py
@@ -1,9 +1,12 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import StandardWindow
7from efl.elementary.box import Box
8from efl.elementary.button import Button
9from efl.elementary.calendar_elm import Calendar
7 10
8from datetime import datetime 11from datetime import datetime
9 12
@@ -71,20 +74,20 @@ def api_bt_clicked(bt, a):
71 74
72# A simple test, just displaying calendar in it's default state 75# A simple test, just displaying calendar in it's default state
73def calendar_clicked(obj): 76def calendar_clicked(obj):
74 win = elementary.StandardWindow("calendar", "Calendar") 77 win = StandardWindow("calendar", "Calendar")
75 win.autodel = True 78 win.autodel = True
76 79
77 bxx = elementary.Box(win) 80 bxx = Box(win)
78 win.resize_object_add(bxx) 81 win.resize_object_add(bxx)
79 bxx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 82 bxx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
80 bxx.show() 83 bxx.show()
81 84
82 bx = elementary.Box(win) 85 bx = Box(win)
83 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 86 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
84 api["box"] = bx 87 api["box"] = bx
85 bx.show() 88 bx.show()
86 89
87 bt = elementary.Button(win) 90 bt = Button(win)
88 bt.text = "Next API function" 91 bt.text = "Next API function"
89 bt.callback_clicked_add(api_bt_clicked, api) 92 bt.callback_clicked_add(api_bt_clicked, api)
90 bxx.pack_end(bt) 93 bxx.pack_end(bt)
@@ -94,7 +97,7 @@ def calendar_clicked(obj):
94 97
95 bxx.pack_end(bx) 98 bxx.pack_end(bx)
96 99
97 cal = elementary.Calendar(win) 100 cal = Calendar(win)
98 cal.first_day_of_week = elementary.ELM_DAY_MONDAY 101 cal.first_day_of_week = elementary.ELM_DAY_MONDAY
99 cal.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 102 cal.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
100 bx.pack_end(cal) 103 bx.pack_end(cal)
diff --git a/examples/elementary/test_check.py b/examples/elementary/test_check.py
index e1c3c1d..a0fb997 100644
--- a/examples/elementary/test_check.py
+++ b/examples/elementary/test_check.py
@@ -1,9 +1,13 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.icon import Icon
10from efl.elementary.check import Check
7 11
8def ck_1(obj): 12def ck_1(obj):
9 print(("test check 1 state:", obj.state)) 13 print(("test check 1 state:", obj.state))
@@ -21,26 +25,26 @@ def ck_4(obj):
21 print(("test check 4 state:", obj.state)) 25 print(("test check 4 state:", obj.state))
22 26
23def check_clicked(obj): 27def check_clicked(obj):
24 win = elementary.Window("check", elementary.ELM_WIN_BASIC) 28 win = Window("check", elementary.ELM_WIN_BASIC)
25 win.title_set("Check test") 29 win.title_set("Check test")
26 win.autodel_set(True) 30 win.autodel_set(True)
27 if obj is None: 31 if obj is None:
28 win.callback_delete_request_add(lambda o: elementary.exit()) 32 win.callback_delete_request_add(lambda o: elementary.exit())
29 33
30 bg = elementary.Background(win) 34 bg = Background(win)
31 win.resize_object_add(bg) 35 win.resize_object_add(bg)
32 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 36 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
33 bg.show() 37 bg.show()
34 38
35 bx = elementary.Box(win) 39 bx = Box(win)
36 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 40 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
37 win.resize_object_add(bx) 41 win.resize_object_add(bx)
38 bx.show() 42 bx.show()
39 43
40 ic = elementary.Icon(win) 44 ic = Icon(win)
41 ic.file_set('images/logo_small.png') 45 ic.file_set('images/logo_small.png')
42 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 46 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
43 ck = elementary.Check(win) 47 ck = Check(win)
44 ck.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 48 ck.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
45 ck.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 49 ck.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
46 ck.text_set("Icon sized to check") 50 ck.text_set("Icon sized to check")
@@ -51,10 +55,10 @@ def check_clicked(obj):
51 ck.show() 55 ck.show()
52 ic.show() 56 ic.show()
53 57
54 ic = elementary.Icon(win) 58 ic = Icon(win)
55 ic.file_set('images/logo_small.png') 59 ic.file_set('images/logo_small.png')
56 ic.resizable_set(0, 0) 60 ic.resizable_set(0, 0)
57 ck = elementary.Check(win) 61 ck = Check(win)
58 ck.text_set("Icon no scale") 62 ck.text_set("Icon no scale")
59 ck.content_set(ic) 63 ck.content_set(ic)
60 ck.callback_changed_add(ck_2) 64 ck.callback_changed_add(ck_2)
@@ -62,16 +66,16 @@ def check_clicked(obj):
62 ck.show() 66 ck.show()
63 ic.show() 67 ic.show()
64 68
65 ck = elementary.Check(win) 69 ck = Check(win)
66 ck.text_set("Label Only") 70 ck.text_set("Label Only")
67 ck.callback_changed_add(ck_3) 71 ck.callback_changed_add(ck_3)
68 bx.pack_end(ck) 72 bx.pack_end(ck)
69 ck.show() 73 ck.show()
70 74
71 ic = elementary.Icon(win) 75 ic = Icon(win)
72 ic.file_set('images/logo_small.png') 76 ic.file_set('images/logo_small.png')
73 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 77 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
74 ck = elementary.Check(win) 78 ck = Check(win)
75 ck.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 79 ck.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
76 ck.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 80 ck.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
77 ck.text_set("Disabled check") 81 ck.text_set("Disabled check")
@@ -83,11 +87,11 @@ def check_clicked(obj):
83 ck.show() 87 ck.show()
84 ic.show() 88 ic.show()
85 89
86 ic = elementary.Icon(win) 90 ic = Icon(win)
87 ic.file_set('images/logo_small.png') 91 ic.file_set('images/logo_small.png')
88 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) 92 ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1)
89 ic.resizable_set(0, 0) 93 ic.resizable_set(0, 0)
90 ck = elementary.Check(win) 94 ck = Check(win)
91 ck.content_set(ic) 95 ck.content_set(ic)
92 ck.callback_changed_add(ck_4) 96 ck.callback_changed_add(ck_4)
93 bx.pack_end(ck) 97 bx.pack_end(ck)
diff --git a/examples/elementary/test_clock.py b/examples/elementary/test_clock.py
index 107d887..198e050 100644
--- a/examples/elementary/test_clock.py
+++ b/examples/elementary/test_clock.py
@@ -1,50 +1,53 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.clock import Clock
7 10
8def clock_clicked(obj): 11def clock_clicked(obj):
9 win = elementary.Window("clock", elementary.ELM_WIN_BASIC) 12 win = Window("clock", elementary.ELM_WIN_BASIC)
10 win.title_set("Clock") 13 win.title_set("Clock")
11 win.autodel_set(True) 14 win.autodel_set(True)
12 if obj is None: 15 if obj is None:
13 win.callback_delete_request_add(lambda o: elementary.exit()) 16 win.callback_delete_request_add(lambda o: elementary.exit())
14 17
15 bg = elementary.Background(win) 18 bg = Background(win)
16 win.resize_object_add(bg) 19 win.resize_object_add(bg)
17 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 20 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
18 bg.show() 21 bg.show()
19 22
20 bx = elementary.Box(win) 23 bx = Box(win)
21 win.resize_object_add(bx) 24 win.resize_object_add(bx)
22 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 25 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
23 bx.show() 26 bx.show()
24 27
25 ck = elementary.Clock(win) 28 ck = Clock(win)
26 bx.pack_end(ck) 29 bx.pack_end(ck)
27 ck.show() 30 ck.show()
28 31
29 ck = elementary.Clock(win) 32 ck = Clock(win)
30 ck.show_am_pm_set(True) 33 ck.show_am_pm_set(True)
31 bx.pack_end(ck) 34 bx.pack_end(ck)
32 ck.show() 35 ck.show()
33 36
34 print((ck.time_get())) 37 print((ck.time_get()))
35 38
36 ck = elementary.Clock(win) 39 ck = Clock(win)
37 ck.show_seconds_set(True) 40 ck.show_seconds_set(True)
38 bx.pack_end(ck) 41 bx.pack_end(ck)
39 ck.show() 42 ck.show()
40 43
41 ck = elementary.Clock(win) 44 ck = Clock(win)
42 ck.show_seconds_set(True) 45 ck.show_seconds_set(True)
43 ck.show_am_pm_set(True) 46 ck.show_am_pm_set(True)
44 bx.pack_end(ck) 47 bx.pack_end(ck)
45 ck.show() 48 ck.show()
46 49
47 ck = elementary.Clock(win) 50 ck = Clock(win)
48 ck.edit_set(True) 51 ck.edit_set(True)
49 ck.show_seconds_set(True) 52 ck.show_seconds_set(True)
50 ck.show_am_pm_set(True) 53 ck.show_am_pm_set(True)
@@ -52,7 +55,7 @@ def clock_clicked(obj):
52 bx.pack_end(ck) 55 bx.pack_end(ck)
53 ck.show() 56 ck.show()
54 57
55 ck = elementary.Clock(win) 58 ck = Clock(win)
56 ck.edit_set(True) 59 ck.edit_set(True)
57 ck.show_seconds_set(True) 60 ck.show_seconds_set(True)
58 ck.edit_mode = elementary.ELM_CLOCK_EDIT_HOUR_DECIMAL | \ 61 ck.edit_mode = elementary.ELM_CLOCK_EDIT_HOUR_DECIMAL | \
diff --git a/examples/elementary/test_colorselector.py b/examples/elementary/test_colorselector.py
index 9d0c79b..fe790c8 100644
--- a/examples/elementary/test_colorselector.py
+++ b/examples/elementary/test_colorselector.py
@@ -1,9 +1,14 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.frame import Frame
10from efl.elementary.button import Button
11from efl.elementary.colorselector import Colorselector
7 12
8def cb_cs_changed(cs, rect): 13def cb_cs_changed(cs, rect):
9 print("changed") 14 print("changed")
@@ -30,23 +35,23 @@ def cb_cs_item_lp(cs, item, rect):
30 rect.color = (r, g, b, a) 35 rect.color = (r, g, b, a)
31 36
32def colorselector_clicked(obj): 37def colorselector_clicked(obj):
33 win = elementary.Window("colorselector", elementary.ELM_WIN_BASIC) 38 win = Window("colorselector", elementary.ELM_WIN_BASIC)
34 win.title = "ColorSelector test" 39 win.title = "ColorSelector test"
35 win.autodel = True 40 win.autodel = True
36 if obj is None: 41 if obj is None:
37 win.callback_delete_request_add(lambda o: elementary.exit()) 42 win.callback_delete_request_add(lambda o: elementary.exit())
38 43
39 bg = elementary.Background(win) 44 bg = Background(win)
40 win.resize_object_add(bg) 45 win.resize_object_add(bg)
41 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 46 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
42 bg.show() 47 bg.show()
43 48
44 vbox = elementary.Box(win) 49 vbox = Box(win)
45 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 50 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
46 win.resize_object_add(vbox) 51 win.resize_object_add(vbox)
47 vbox.show() 52 vbox.show()
48 53
49 fr = elementary.Frame(win) 54 fr = Frame(win)
50 fr.text = "Color View" 55 fr.text = "Color View"
51 fr.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0) 56 fr.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
52 fr.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 57 fr.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
@@ -58,14 +63,14 @@ def colorselector_clicked(obj):
58 fr.content = re 63 fr.content = re
59 re.show() 64 re.show()
60 65
61 fr = elementary.Frame(win) 66 fr = Frame(win)
62 fr.text = "Color Selector" 67 fr.text = "Color Selector"
63 fr.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 68 fr.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
64 fr.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 69 fr.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
65 vbox.pack_end(fr) 70 vbox.pack_end(fr)
66 fr.show() 71 fr.show()
67 72
68 cs = elementary.Colorselector(win) 73 cs = Colorselector(win)
69 cs.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 74 cs.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
70 cs.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 75 cs.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
71 cs.callback_changed_add(cb_cs_changed, re) 76 cs.callback_changed_add(cb_cs_changed, re)
@@ -89,14 +94,14 @@ def colorselector_clicked(obj):
89 cs.palette_color_add(255, 255, 119, 255) 94 cs.palette_color_add(255, 255, 119, 255)
90 cs.palette_color_add(133, 100, 255, 255) 95 cs.palette_color_add(133, 100, 255, 255)
91 96
92 hbox = elementary.Box(win) 97 hbox = Box(win)
93 hbox.horizontal = True 98 hbox.horizontal = True
94 hbox.size_hint_align = (evas.EVAS_HINT_FILL, 0.0) 99 hbox.size_hint_align = (evas.EVAS_HINT_FILL, 0.0)
95 hbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0) 100 hbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
96 vbox.pack_end(hbox) 101 vbox.pack_end(hbox)
97 hbox.show() 102 hbox.show()
98 103
99 bt = elementary.Button(win) 104 bt = Button(win)
100 bt.text = "Palette" 105 bt.text = "Palette"
101 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0) 106 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0)
102 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0) 107 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
@@ -104,7 +109,7 @@ def colorselector_clicked(obj):
104 hbox.pack_end(bt) 109 hbox.pack_end(bt)
105 bt.show() 110 bt.show()
106 111
107 bt = elementary.Button(win) 112 bt = Button(win)
108 bt.text = "Components" 113 bt.text = "Components"
109 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0) 114 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0)
110 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0) 115 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
@@ -112,7 +117,7 @@ def colorselector_clicked(obj):
112 hbox.pack_end(bt) 117 hbox.pack_end(bt)
113 bt.show() 118 bt.show()
114 119
115 bt = elementary.Button(win) 120 bt = Button(win)
116 bt.text = "Both" 121 bt.text = "Both"
117 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0) 122 bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0)
118 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0) 123 bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
diff --git a/examples/elementary/test_core_evas_canvas_callbacks.py b/examples/elementary/test_core_evas_canvas_callbacks.py
index 62e0db3..1cc7b51 100644
--- a/examples/elementary/test_core_evas_canvas_callbacks.py
+++ b/examples/elementary/test_core_evas_canvas_callbacks.py
@@ -1,9 +1,12 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.button import Button
7 10
8def btn_del_cbs_cb(button): 11def btn_del_cbs_cb(button):
9 canvas = button.evas_get() 12 canvas = button.evas_get()
@@ -25,13 +28,13 @@ def events_cb2(rect, evtinfo, event_name):
25 28
26 29
27def core_evas_canvas_callbacks_clicked(obj, item=None): 30def core_evas_canvas_callbacks_clicked(obj, item=None):
28 win = elementary.Window("evascanvascbs", elementary.ELM_WIN_BASIC) 31 win = Window("evascanvascbs", elementary.ELM_WIN_BASIC)
29 win.title_set("Evas canvas callbacks") 32 win.title_set("Evas canvas callbacks")
30 win.autodel_set(True) 33 win.autodel_set(True)
31 if obj is None: 34 if obj is None:
32 win.callback_delete_request_add(lambda o: elementary.exit()) 35 win.callback_delete_request_add(lambda o: elementary.exit())
33 36
34 bg = elementary.Background(win) 37 bg = Background(win)
35 win.resize_object_add(bg) 38 win.resize_object_add(bg)
36 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 39 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
37 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 40 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
@@ -56,14 +59,14 @@ def core_evas_canvas_callbacks_clicked(obj, item=None):
56 r2 = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70)) 59 r2 = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70))
57 r2.show() 60 r2.show()
58 61
59 hbox = elementary.Box(win) 62 hbox = Box(win)
60 win.resize_object_add(hbox) 63 win.resize_object_add(hbox)
61 hbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 64 hbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
62 hbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 65 hbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
63 hbox.horizontal = True 66 hbox.horizontal = True
64 hbox.show() 67 hbox.show()
65 68
66 b = elementary.Button(win) 69 b = Button(win)
67 b.text = "del cbs" 70 b.text = "del cbs"
68 b.size_hint_align_set(0.5, 1.0) 71 b.size_hint_align_set(0.5, 1.0)
69 hbox.pack_end(b) 72 hbox.pack_end(b)
diff --git a/examples/elementary/test_core_evas_object_callbacks.py b/examples/elementary/test_core_evas_object_callbacks.py
index 481e94e..c2b439c 100644
--- a/examples/elementary/test_core_evas_object_callbacks.py
+++ b/examples/elementary/test_core_evas_object_callbacks.py
@@ -1,9 +1,12 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.button import Button
7 10
8 11
9def btn_del_cbs_cb(button, rect): 12def btn_del_cbs_cb(button, rect):
@@ -41,13 +44,13 @@ def events_cb2(rect, evtinfo, event_name):
41 44
42 45
43def core_evas_object_callbacks_clicked(obj, item=None): 46def core_evas_object_callbacks_clicked(obj, item=None):
44 win = elementary.Window("evas3d", elementary.ELM_WIN_BASIC) 47 win = Window("evas3d", elementary.ELM_WIN_BASIC)
45 win.title_set("Evas object callbacks") 48 win.title_set("Evas object callbacks")
46 win.autodel_set(True) 49 win.autodel_set(True)
47 if obj is None: 50 if obj is None:
48 win.callback_delete_request_add(lambda o: elementary.exit()) 51 win.callback_delete_request_add(lambda o: elementary.exit())
49 52
50 bg = elementary.Background(win) 53 bg = Background(win)
51 win.resize_object_add(bg) 54 win.resize_object_add(bg)
52 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 55 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
53 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 56 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
@@ -99,56 +102,56 @@ def core_evas_object_callbacks_clicked(obj, item=None):
99 r2 = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70)) 102 r2 = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70))
100 r2.show() 103 r2.show()
101 104
102 hbox = elementary.Box(win) 105 hbox = Box(win)
103 win.resize_object_add(hbox) 106 win.resize_object_add(hbox)
104 hbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 107 hbox.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
105 hbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 108 hbox.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
106 hbox.horizontal = True 109 hbox.horizontal = True
107 hbox.show() 110 hbox.show()
108 111
109 b = elementary.Button(win) 112 b = Button(win)
110 b.text = "show / hide" 113 b.text = "show / hide"
111 b.size_hint_align_set(0.5, 1.0) 114 b.size_hint_align_set(0.5, 1.0)
112 hbox.pack_end(b) 115 hbox.pack_end(b)
113 b.callback_clicked_add(lambda b, r: r.hide() if r.visible else r.show(), r) 116 b.callback_clicked_add(lambda b, r: r.hide() if r.visible else r.show(), r)
114 b.show() 117 b.show()
115 118
116 b = elementary.Button(win) 119 b = Button(win)
117 b.text = "move" 120 b.text = "move"
118 b.size_hint_align_set(0.5, 1.0) 121 b.size_hint_align_set(0.5, 1.0)
119 hbox.pack_end(b) 122 hbox.pack_end(b)
120 b.callback_clicked_add(lambda b, t: r.pos_set(r.pos[0] + 1, r.pos[1]), r) 123 b.callback_clicked_add(lambda b, t: r.pos_set(r.pos[0] + 1, r.pos[1]), r)
121 b.show() 124 b.show()
122 125
123 b = elementary.Button(win) 126 b = Button(win)
124 b.text = "resize" 127 b.text = "resize"
125 b.size_hint_align_set(0.5, 1.0) 128 b.size_hint_align_set(0.5, 1.0)
126 hbox.pack_end(b) 129 hbox.pack_end(b)
127 b.callback_clicked_add(lambda b, r: r.size_set(r.size[0] + 1, r.size[1] + 1), r) 130 b.callback_clicked_add(lambda b, r: r.size_set(r.size[0] + 1, r.size[1] + 1), r)
128 b.show() 131 b.show()
129 132
130 b = elementary.Button(win) 133 b = Button(win)
131 b.text = "delete" 134 b.text = "delete"
132 b.size_hint_align_set(0.5, 1.0) 135 b.size_hint_align_set(0.5, 1.0)
133 hbox.pack_end(b) 136 hbox.pack_end(b)
134 b.callback_clicked_add(lambda b, r: r.delete(), r) 137 b.callback_clicked_add(lambda b, r: r.delete(), r)
135 b.show() 138 b.show()
136 139
137 b = elementary.Button(win) 140 b = Button(win)
138 b.text = "raise" 141 b.text = "raise"
139 b.size_hint_align_set(0.5, 1.0) 142 b.size_hint_align_set(0.5, 1.0)
140 hbox.pack_end(b) 143 hbox.pack_end(b)
141 b.callback_clicked_add(lambda b, r: r.raise_(), r) 144 b.callback_clicked_add(lambda b, r: r.raise_(), r)
142 b.show() 145 b.show()
143 146
144 b = elementary.Button(win) 147 b = Button(win)
145 b.text = "hints" 148 b.text = "hints"
146 b.size_hint_align_set(0.5, 1.0) 149 b.size_hint_align_set(0.5, 1.0)
147 hbox.pack_end(b) 150 hbox.pack_end(b)
148 b.callback_clicked_add(lambda b, r: r.size_hint_align_set(0.0, 0.0), r) 151 b.callback_clicked_add(lambda b, r: r.size_hint_align_set(0.0, 0.0), r)
149 b.show() 152 b.show()
150 153
151 b = elementary.Button(win) 154 b = Button(win)
152 b.text = "del cbs" 155 b.text = "del cbs"
153 b.size_hint_align_set(0.5, 1.0) 156 b.size_hint_align_set(0.5, 1.0)
154 hbox.pack_end(b) 157 hbox.pack_end(b)
diff --git a/examples/elementary/test_core_evas_objects.py b/examples/elementary/test_core_evas_objects.py
index 5461004..d6ca46d 100644
--- a/examples/elementary/test_core_evas_objects.py
+++ b/examples/elementary/test_core_evas_objects.py
@@ -1,9 +1,10 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
7 8
8 9
9def events_cb1(rect, event_name): 10def events_cb1(rect, event_name):
@@ -15,19 +16,18 @@ def events_cb2(rect, evtinfo, event_name):
15 16
16def core_evas_objects_clicked(obj, item=None): 17def core_evas_objects_clicked(obj, item=None):
17 18
18 win = elementary.Window("evasobjects", elementary.ELM_WIN_BASIC) 19 win = Window("evasobjects", elementary.ELM_WIN_BASIC)
19 win.title_set("Evas Objects Test") 20 win.title_set("Evas Objects Test")
20 win.autodel_set(True) 21 win.autodel_set(True)
21 if obj is None: 22 if obj is None:
22 win.callback_delete_request_add(lambda o: elementary.exit()) 23 win.callback_delete_request_add(lambda o: elementary.exit())
23 24
24 bg = elementary.Background(win) 25 bg = Background(win)
25 win.resize_object_add(bg) 26 win.resize_object_add(bg)
26 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 27 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
27 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 28 bg.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
28 bg.show() 29 bg.show()
29 30
30
31 rect = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70)) 31 rect = evas.Rectangle(win.evas, size=(120,70), color=(0,100,0,100), pos=(70,70))
32 rect.show() 32 rect.show()
33 33
diff --git a/examples/elementary/test_ctxpopup.py b/examples/elementary/test_ctxpopup.py
index dd6dc39..25b2eb3 100644
--- a/examples/elementary/test_ctxpopup.py
+++ b/examples/elementary/test_ctxpopup.py
@@ -1,16 +1,23 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.icon import Icon
10from efl.elementary.button import Button
11from efl.elementary.list import List
12from efl.elementary.ctxpopup import Ctxpopup
13from efl.elementary.scroller import Scroller
7 14
8def cb_items(li, item): 15def cb_items(li, item):
9 print(("ctxpopup item selected: %s" % (item.text))) 16 print(("ctxpopup item selected: %s" % (item.text)))
10 17
11def item_new(cp, label, icon = None): 18def item_new(cp, label, icon = None):
12 if icon: 19 if icon:
13 ic = elementary.Icon(cp) 20 ic = Icon(cp)
14 ic.standard_set(icon) 21 ic.standard_set(icon)
15 ic.resizable_set(False, False) 22 ic.resizable_set(False, False)
16 return cp.item_append(label, ic, cb_items) 23 return cp.item_append(label, ic, cb_items)
@@ -37,7 +44,7 @@ def cb_dismissed(cp):
37 cp.data["img"].delete() 44 cp.data["img"].delete()
38 45
39def cb_item1(li, item): 46def cb_item1(li, item):
40 cp = elementary.Ctxpopup(li) 47 cp = Ctxpopup(li)
41 it = item_new(cp, "Go to home folder", "home") 48 it = item_new(cp, "Go to home folder", "home")
42 it = item_new(cp, "Save file", "file") 49 it = item_new(cp, "Save file", "file")
43 it = item_new(cp, "Delete file", "delete") 50 it = item_new(cp, "Delete file", "delete")
@@ -52,7 +59,7 @@ def cb_item1(li, item):
52 cp.show() 59 cp.show()
53 60
54def cb_item2(li, item): 61def cb_item2(li, item):
55 cp = elementary.Ctxpopup(li) 62 cp = Ctxpopup(li)
56 it = item_new(cp, "", "home") 63 it = item_new(cp, "", "home")
57 it = item_new(cp, "", "file") 64 it = item_new(cp, "", "file")
58 it = item_new(cp, "", "delete") 65 it = item_new(cp, "", "delete")
@@ -66,7 +73,7 @@ def cb_item2(li, item):
66 cp.show() 73 cp.show()
67 74
68def cb_item3(li, item): 75def cb_item3(li, item):
69 cp = elementary.Ctxpopup(li) 76 cp = Ctxpopup(li)
70 it = item_new(cp, "Eina") 77 it = item_new(cp, "Eina")
71 it = item_new(cp, "Eet") 78 it = item_new(cp, "Eet")
72 it = item_new(cp, "Evas") 79 it = item_new(cp, "Evas")
@@ -80,7 +87,7 @@ def cb_item3(li, item):
80 cp.show() 87 cp.show()
81 88
82def cb_item4(li, item): 89def cb_item4(li, item):
83 cp = elementary.Ctxpopup(li) 90 cp = Ctxpopup(li)
84 cp.horizontal = True 91 cp.horizontal = True
85 it = item_new(cp, "", "home") 92 it = item_new(cp, "", "home")
86 it = item_new(cp, "", "file") 93 it = item_new(cp, "", "file")
@@ -94,39 +101,39 @@ def cb_item4(li, item):
94 cp.show() 101 cp.show()
95 102
96def cb_item5(li, item): 103def cb_item5(li, item):
97 box = elementary.Box(li) 104 box = Box(li)
98 box.size_hint_min = (150, 150) 105 box.size_hint_min = (150, 150)
99 106
100 sc = elementary.Scroller(li) 107 sc = Scroller(li)
101 sc.bounce = (False, True) 108 sc.bounce = (False, True)
102 sc.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 109 sc.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
103 sc.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 110 sc.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
104 sc.show() 111 sc.show()
105 112
106 bt = elementary.Button(li) 113 bt = Button(li)
107 bt.text = "Enlightenment" 114 bt.text = "Enlightenment"
108 bt.size_hint_min = (140, 140) 115 bt.size_hint_min = (140, 140)
109 116
110 sc.content = bt 117 sc.content = bt
111 box.pack_end(sc) 118 box.pack_end(sc)
112 119
113 cp = elementary.Ctxpopup(li) 120 cp = Ctxpopup(li)
114 cp.content = box 121 cp.content = box
115 (x, y) = li.evas.pointer_canvas_xy_get() 122 (x, y) = li.evas.pointer_canvas_xy_get()
116 cp.move(x, y) 123 cp.move(x, y)
117 cp.show() 124 cp.show()
118 125
119def cb_item6(li, item): 126def cb_item6(li, item):
120 box = elementary.Box(li) 127 box = Box(li)
121 box.size_hint_min = (200, 150) 128 box.size_hint_min = (200, 150)
122 129
123 sc = elementary.Scroller(li) 130 sc = Scroller(li)
124 sc.bounce = (False, True) 131 sc.bounce = (False, True)
125 sc.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 132 sc.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
126 sc.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 133 sc.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
127 sc.show() 134 sc.show()
128 135
129 bt = elementary.Button(li) 136 bt = Button(li)
130 bt.text = "Ctxpop will be on the top of layer" 137 bt.text = "Ctxpop will be on the top of layer"
131 bt.callback_clicked_add(cb_btn) 138 bt.callback_clicked_add(cb_btn)
132 bt.size_hint_min = (190, 140) 139 bt.size_hint_min = (190, 140)
@@ -134,7 +141,7 @@ def cb_item6(li, item):
134 sc.content = bt 141 sc.content = bt
135 box.pack_end(sc) 142 box.pack_end(sc)
136 143
137 cp = elementary.Ctxpopup(li) 144 cp = Ctxpopup(li)
138 cp.callback_dismissed_add(cb_dismissed) 145 cp.callback_dismissed_add(cb_dismissed)
139 cp.content = box 146 cp.content = box
140 (x, y) = li.evas.pointer_canvas_xy_get() 147 (x, y) = li.evas.pointer_canvas_xy_get()
@@ -143,18 +150,18 @@ def cb_item6(li, item):
143 bt.data["ctxpopup"] = cp 150 bt.data["ctxpopup"] = cp
144 151
145def ctxpopup_clicked(obj): 152def ctxpopup_clicked(obj):
146 win = elementary.Window("ctxpopup", elementary.ELM_WIN_BASIC) 153 win = Window("ctxpopup", elementary.ELM_WIN_BASIC)
147 win.title = "Context popup test" 154 win.title = "Context popup test"
148 win.autodel = True 155 win.autodel = True
149 if obj is None: 156 if obj is None:
150 win.callback_delete_request_add(lambda o: elementary.exit()) 157 win.callback_delete_request_add(lambda o: elementary.exit())
151 158
152 bg = elementary.Background(win) 159 bg = Background(win)
153 win.resize_object_add(bg) 160 win.resize_object_add(bg)
154 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 161 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
155 bg.show() 162 bg.show()
156 163
157 li = elementary.List(win) 164 li = List(win)
158 win.resize_object_add(li) 165 win.resize_object_add(li)
159 li.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 166 li.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
160 li.mode = elementary.ELM_LIST_COMPRESS 167 li.mode = elementary.ELM_LIST_COMPRESS
diff --git a/examples/elementary/test_cursor.py b/examples/elementary/test_cursor.py
index 9d4de95..d4b18e2 100644
--- a/examples/elementary/test_cursor.py
+++ b/examples/elementary/test_cursor.py
@@ -2,61 +2,69 @@
2# encoding: utf-8 2# encoding: utf-8
3 3
4 4
5from efl import elementary
6# from efl.elementary import cursors
7from efl import evas 5from efl import evas
8 6from efl import elementary
7from efl.elementary.window import Window
8from efl.elementary.background import Background
9from efl.elementary.box import Box
10from efl.elementary.button import Button
11from efl.elementary.label import Label
12from efl.elementary.list import List
13from efl.elementary.frame import Frame
14from efl.elementary.clock import Clock
15from efl.elementary.entry import Entry
16from efl.elementary.toolbar import Toolbar
9 17
10def cursor_clicked(obj, item=None): 18def cursor_clicked(obj, item=None):
11 win = elementary.Window("cursors", elementary.ELM_WIN_BASIC) 19 win = Window("cursors", elementary.ELM_WIN_BASIC)
12 win.title_set("Cursors") 20 win.title_set("Cursors")
13 win.autodel_set(True) 21 win.autodel_set(True)
14 22
15 bg = elementary.Background(win) 23 bg = Background(win)
16 win.resize_object_add(bg) 24 win.resize_object_add(bg)
17 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 25 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
18 bg.show() 26 bg.show()
19 27
20 bx = elementary.Box(win) 28 bx = Box(win)
21 win.resize_object_add(bx) 29 win.resize_object_add(bx)
22 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 30 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
23 bx.show() 31 bx.show()
24 32
25 ck = elementary.Clock(win) 33 ck = Clock(win)
26 ck.cursor_set(elementary.ELM_CURSOR_CLOCK) 34 ck.cursor_set("clock")
27 bx.pack_end(ck) 35 bx.pack_end(ck)
28 ck.show() 36 ck.show()
29 37
30 bt = elementary.Button(win) 38 bt = Button(win)
31 bt.text_set("Coffee Mug") 39 bt.text_set("Coffee Mug")
32 bt.cursor_set(elementary.ELM_CURSOR_COFFEE_MUG) 40 bt.cursor_set("coffee_mug")
33 bx.pack_end(bt) 41 bx.pack_end(bt)
34 bt.show() 42 bt.show()
35 43
36 bt = elementary.Button(win) 44 bt = Button(win)
37 bt.text_set("Cursor unset") 45 bt.text_set("Cursor unset")
38 bt.cursor_set(elementary.ELM_CURSOR_BOGOSITY) 46 bt.cursor_set("bogosity")
39 bt.cursor_unset() 47 bt.cursor_unset()
40 bx.pack_end(bt) 48 bx.pack_end(bt)
41 bt.show() 49 bt.show()
42 50
43 lst = elementary.List(win) 51 lst = List(win)
44 lst.item_append("watch over list") 52 lst.item_append("watch over list")
45 lst.item_append("watch over list") 53 lst.item_append("watch over list")
46 lst.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 54 lst.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
47 lst.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 55 lst.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
48 lst.cursor_set(elementary.ELM_CURSOR_WATCH) 56 lst.cursor_set("watch")
49 bx.pack_end(lst) 57 bx.pack_end(lst)
50 lst.go() 58 lst.go()
51 lst.show() 59 lst.show()
52 60
53 en = elementary.Entry(win) 61 en = Entry(win)
54 en.scrollable_set(True) 62 en.scrollable_set(True)
55 en.single_line_set(True) 63 en.single_line_set(True)
56 en.entry_set("Xterm cursor") 64 en.entry_set("Xterm cursor")
57 en.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) 65 en.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0)
58 en.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 66 en.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
59 en.cursor_set(elementary.ELM_CURSOR_XTERM) 67 en.cursor_set("xterm")
60 bx.pack_end(en) 68 bx.pack_end(en)
61 en.show() 69 en.show()
62 70
@@ -65,41 +73,39 @@ def cursor_clicked(obj, item=None):
65 73
66 74
67def cursor2_clicked(obj, item=None): 75def cursor2_clicked(obj, item=None):
68 win = elementary.Window("cursors", elementary.ELM_WIN_BASIC) 76 win = Window("cursors", elementary.ELM_WIN_BASIC)
69 win.title_set("Cursors 2") 77 win.title_set("Cursors 2")
70 win.autodel_set(True) 78 win.autodel_set(True)
71 79
72 bg = elementary.Background(win) 80 bg = Background(win)
73 win.resize_object_add(bg) 81 win.resize_object_add(bg)
74 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 82 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
75 bg.show() 83 bg.show()
76 84
77 bx = elementary.Box(win) 85 bx = Box(win)
78 win.resize_object_add(bx) 86 win.resize_object_add(bx)
79 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 87 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
80 bx.show() 88 bx.show()
81 89
82 tb = elementary.Toolbar(win) 90 tb = Toolbar(win)
83 ti = tb.item_append("folder-new", "Bogosity", None, None) 91 ti = tb.item_append("folder-new", "Bogosity", None, None)
84 ti.cursor_set(elementary.ELM_CURSOR_BOGOSITY) 92 ti.cursor_set("bogosity")
85 ti = tb.item_append("clock", "Unset", None, None) 93 ti = tb.item_append("clock", "Unset", None, None)
86 ti.cursor_set(elementary.ELM_CURSOR_BOGOSITY)
87 ti.cursor_unset() 94 ti.cursor_unset()
88 ti = tb.item_append("document-print", "Xterm", None, None) 95 ti = tb.item_append("document-print", "Xterm", None, None)
89 ti.cursor_set(elementary.ELM_CURSOR_XTERM) 96 ti.cursor_set("xterm")
90 tb.size_hint_weight_set(0.0, 0.0) 97 tb.size_hint_weight_set(0.0, 0.0)
91 tb.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) 98 tb.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0)
92 bx.pack_end(tb) 99 bx.pack_end(tb)
93 tb.show() 100 tb.show()
94 101
95 lst = elementary.List(win) 102 lst = List(win)
96 li = lst.item_append("cursor bogosity") 103 li = lst.item_append("cursor bogosity")
97 li.cursor_set(elementary.ELM_CURSOR_BOGOSITY) 104 li.cursor_set("bogosity")
98 li = lst.item_append("cursor unset") 105 li = lst.item_append("cursor unset")
99 li.cursor_set(elementary.ELM_CURSOR_BOGOSITY)
100 li.cursor_unset() 106 li.cursor_unset()
101 li = lst.item_append("cursor xterm") 107 li = lst.item_append("cursor xterm")
102 li.cursor_set(elementary.ELM_CURSOR_XTERM) 108 li.cursor_set("xterm")
103 lst.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 109 lst.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
104 lst.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 110 lst.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
105 bx.pack_end(lst) 111 bx.pack_end(lst)
@@ -111,49 +117,49 @@ def cursor2_clicked(obj, item=None):
111 117
112 118
113def cursor3_clicked(obj, item=None): 119def cursor3_clicked(obj, item=None):
114 win = elementary.Window("cursors", elementary.ELM_WIN_BASIC) 120 win = Window("cursors", elementary.ELM_WIN_BASIC)
115 win.title_set("Cursors 3") 121 win.title_set("Cursors 3")
116 win.autodel_set(True) 122 win.autodel_set(True)
117 123
118 elementary.theme_extension_add("./cursors.edj") 124 elementary.theme_extension_add("./cursors.edj")
119 bg = elementary.Background(win) 125 bg = Background(win)
120 win.resize_object_add(bg) 126 win.resize_object_add(bg)
121 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 127 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
122 bg.show() 128 bg.show()
123 129
124 bx = elementary.Box(win) 130 bx = Box(win)
125 win.resize_object_add(bx) 131 win.resize_object_add(bx)
126 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 132 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
127 bx.show() 133 bx.show()
128 134
129 bt = elementary.Button(win) 135 bt = Button(win)
130 bt.text_set("hand1") 136 bt.text_set("hand1")
131 bt.cursor_set(elementary.ELM_CURSOR_HAND1) 137 bt.cursor_set("hand1")
132 bt.cursor_theme_search_enabled_set(False) 138 bt.cursor_theme_search_enabled_set(False)
133 bx.pack_end(bt) 139 bx.pack_end(bt)
134 bt.show() 140 bt.show()
135 141
136 bt = elementary.Button(win) 142 bt = Button(win)
137 bt.text_set("hand2 x") 143 bt.text_set("hand2 x")
138 bt.cursor_set(elementary.ELM_CURSOR_HAND2) 144 bt.cursor_set("hand2")
139 bx.pack_end(bt) 145 bx.pack_end(bt)
140 bt.show() 146 bt.show()
141 147
142 bt = elementary.Button(win) 148 bt = Button(win)
143 bt.text_set("hand2") 149 bt.text_set("hand2")
144 bt.cursor_set(elementary.ELM_CURSOR_HAND2) 150 bt.cursor_set("hand2")
145 bt.cursor_theme_search_enabled_set(False) 151 bt.cursor_theme_search_enabled_set(False)
146 bx.pack_end(bt) 152 bx.pack_end(bt)
147 bt.show() 153 bt.show()
148 154
149 bt = elementary.Button(win) 155 bt = Button(win)
150 bt.text_set("hand3") 156 bt.text_set("hand3")
151 bt.cursor_set("hand3") 157 bt.cursor_set("hand3")
152 bt.cursor_theme_search_enabled_set(False) 158 bt.cursor_theme_search_enabled_set(False)
153 bx.pack_end(bt) 159 bx.pack_end(bt)
154 bt.show() 160 bt.show()
155 161
156 bt = elementary.Button(win) 162 bt = Button(win)
157 bt.text_set("hand3") 163 bt.text_set("hand3")
158 bt.cursor_set("hand3") 164 bt.cursor_set("hand3")
159 bt.cursor_theme_search_enabled_set(False) 165 bt.cursor_theme_search_enabled_set(False)
@@ -161,7 +167,7 @@ def cursor3_clicked(obj, item=None):
161 bx.pack_end(bt) 167 bx.pack_end(bt)
162 bt.show() 168 bt.show()
163 169
164 bt = elementary.Button(win) 170 bt = Button(win)
165 bt.text_set("not existent") 171 bt.text_set("not existent")
166 bt.cursor_set("hand4") 172 bt.cursor_set("hand4")
167 bt.cursor_theme_search_enabled_set(False) 173 bt.cursor_theme_search_enabled_set(False)
@@ -169,24 +175,24 @@ def cursor3_clicked(obj, item=None):
169 bt.show() 175 bt.show()
170 176
171 elementary.cursor_engine_only_set(False) 177 elementary.cursor_engine_only_set(False)
172 bt = elementary.Button(win) 178 bt = Button(win)
173 bt.text_set("hand 2 engine only config false") 179 bt.text_set("hand 2 engine only config false")
174 bt.cursor_set("hand2") 180 bt.cursor_set("hand2")
175 bx.pack_end(bt) 181 bx.pack_end(bt)
176 bt.show() 182 bt.show()
177 183
178 elementary.cursor_engine_only_set(True) 184 elementary.cursor_engine_only_set(True)
179 bt = elementary.Button(win) 185 bt = Button(win)
180 bt.text_set("hand 2 engine only config true") 186 bt.text_set("hand 2 engine only config true")
181 bt.cursor_set("hand2") 187 bt.cursor_set("hand2")
182 bx.pack_end(bt) 188 bx.pack_end(bt)
183 bt.show() 189 bt.show()
184 190
185 lst = elementary.List(win) 191 lst = List(win)
186 li = lst.item_append("cursor hand2 x") 192 li = lst.item_append("cursor hand2 x")
187 li.cursor_set(elementary.ELM_CURSOR_HAND2) 193 li.cursor_set("hand2")
188 li = lst.item_append("cursor hand2") 194 li = lst.item_append("cursor hand2")
189 li.cursor_set(elementary.ELM_CURSOR_HAND2) 195 li.cursor_set("hand2")
190 li.cursor_engine_only_set(False) 196 li.cursor_engine_only_set(False)
191 li = lst.item_append("cursor hand3") 197 li = lst.item_append("cursor hand3")
192 li.cursor_set("hand3") 198 li.cursor_set("hand3")
@@ -210,26 +216,26 @@ if __name__ == "__main__":
210 elementary.exit() 216 elementary.exit()
211 217
212 elementary.init() 218 elementary.init()
213 win = elementary.Window("test", elementary.ELM_WIN_BASIC) 219 win = Window("test", elementary.ELM_WIN_BASIC)
214 win.title_set("python-elementary test application") 220 win.title_set("python-elementary test application")
215 win.callback_delete_request_add(destroy) 221 win.callback_delete_request_add(destroy)
216 222
217 bg = elementary.Background(win) 223 bg = Background(win)
218 win.resize_object_add(bg) 224 win.resize_object_add(bg)
219 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 225 bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
220 bg.show() 226 bg.show()
221 227
222 box0 = elementary.Box(win) 228 box0 = Box(win)
223 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 229 box0.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
224 win.resize_object_add(box0) 230 win.resize_object_add(box0)
225 box0.show() 231 box0.show()
226 232
227 fr = elementary.Frame(win) 233 fr = Frame(win)
228 fr.text_set("Information") 234 fr.text_set("Information")
229 box0.pack_end(fr) 235 box0.pack_end(fr)
230 fr.show() 236 fr.show()
231 237
232 lb = elementary.Label(win) 238 lb = Label(win)
233 lb.text_set("Please select a test from the list below<br>" 239 lb.text_set("Please select a test from the list below<br>"
234 "by clicking the test button to show the<br>" 240 "by clicking the test button to show the<br>"
235 "test window.") 241 "test window.")
@@ -240,7 +246,7 @@ if __name__ == "__main__":
240 ("Cursor 2", cursor2_clicked), 246 ("Cursor 2", cursor2_clicked),
241 ("Cursor 3", cursor3_clicked)] 247 ("Cursor 3", cursor3_clicked)]
242 248
243 li = elementary.List(win) 249 li = List(win)
244 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 250 li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
245 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 251 li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
246 box0.pack_end(li) 252 box0.pack_end(li)
diff --git a/examples/elementary/test_datetime.py b/examples/elementary/test_datetime.py
index 3c2ed12..0aff5cb 100644
--- a/examples/elementary/test_datetime.py
+++ b/examples/elementary/test_datetime.py
@@ -2,8 +2,13 @@
2# encoding: utf-8 2# encoding: utf-8
3 3
4 4
5from efl import elementary
6from efl import evas 5from efl import evas
6from efl import elementary
7from efl.elementary.window import StandardWindow
8from efl.elementary.background import Background
9from efl.elementary.box import Box
10from efl.elementary.datetime_elm import Datetime
11
7 12
8from datetime import datetime 13from datetime import datetime
9 14
@@ -12,17 +17,17 @@ def changed_cb(obj):
12 printf("Datetime value is changed\n") 17 printf("Datetime value is changed\n")
13 18
14def datetime_clicked(obj): 19def datetime_clicked(obj):
15 win = elementary.StandardWindow("dt", "DateTime") 20 win = StandardWindow("dt", "DateTime")
16 win.autodel = True 21 win.autodel = True
17 22
18 bx = elementary.Box(win) 23 bx = Box(win)
19 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 24 bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
20 win.resize_object_add(bx) 25 win.resize_object_add(bx)
21 bx.horizontal = False 26 bx.horizontal = False
22 bx.show() 27 bx.show()
23 bx.size_hint_min_set(360, 240) 28 bx.size_hint_min_set(360, 240)
24 29
25 dt = elementary.Datetime(bx) 30 dt = Datetime(bx)
26 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 31 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
27 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 32 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
28 dt.field_visible_set(elementary.ELM_DATETIME_HOUR, False) 33 dt.field_visible_set(elementary.ELM_DATETIME_HOUR, False)
@@ -31,7 +36,7 @@ def datetime_clicked(obj):
31 bx.pack_end(dt) 36 bx.pack_end(dt)
32 dt.show() 37 dt.show()
33 38
34 dt = elementary.Datetime(bx) 39 dt = Datetime(bx)
35 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 40 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
36 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 41 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
37 dt.field_visible_set(elementary.ELM_DATETIME_YEAR, False) 42 dt.field_visible_set(elementary.ELM_DATETIME_YEAR, False)
@@ -40,7 +45,7 @@ def datetime_clicked(obj):
40 bx.pack_end(dt) 45 bx.pack_end(dt)
41 dt.show() 46 dt.show()
42 47
43 dt = elementary.Datetime(bx) 48 dt = Datetime(bx)
44 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 49 dt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
45 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5) 50 dt.size_hint_align_set(evas.EVAS_HINT_FILL, 0.5)
46 51
diff --git a/examples/elementary/test_dayselector.py b/examples/elementary/test_dayselector.py
index 3a6f829..ed4460f 100644
--- a/examples/elementary/test_dayselector.py
+++ b/examples/elementary/test_dayselector.py
@@ -1,9 +1,12 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.dayselector import Dayselector
7 10
8def cb_changed(ds): 11def cb_changed(ds):
9 print("\nSelected Days:") 12 print("\nSelected Days:")
@@ -17,25 +20,25 @@ def cb_changed(ds):
17 20
18 21
19def dayselector_clicked(obj): 22def dayselector_clicked(obj):
20 win = elementary.Window("dayselector", elementary.ELM_WIN_BASIC) 23 win = Window("dayselector", elementary.ELM_WIN_BASIC)
21 win.title = "Dayselector test" 24 win.title = "Dayselector test"
22 win.autodel = True 25 win.autodel = True
23 if obj is None: 26 if obj is None:
24 win.callback_delete_request_add(lambda o: elementary.exit()) 27 win.callback_delete_request_add(lambda o: elementary.exit())
25 28
26 bg = elementary.Background(win) 29 bg = Background(win)
27 win.resize_object_add(bg) 30 win.resize_object_add(bg)
28 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 31 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
29 bg.show() 32 bg.show()
30 33
31 box = elementary.Box(win) 34 box = Box(win)
32 box.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 35 box.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
33 box.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) 36 box.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
34 win.resize_object_add(box) 37 win.resize_object_add(box)
35 box.show() 38 box.show()
36 39
37 # default 40 # default
38 ds = elementary.Dayselector(win) 41 ds = Dayselector(win)
39 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 42 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
40 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5) 43 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5)
41 box.pack_end(ds) 44 box.pack_end(ds)
@@ -43,7 +46,7 @@ def dayselector_clicked(obj):
43 ds.callback_dayselector_changed_add(cb_changed) 46 ds.callback_dayselector_changed_add(cb_changed)
44 47
45 # Sunday first 48 # Sunday first
46 ds = elementary.Dayselector(win) 49 ds = Dayselector(win)
47 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 50 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
48 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5) 51 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5)
49 box.pack_end(ds) 52 box.pack_end(ds)
@@ -56,7 +59,7 @@ def dayselector_clicked(obj):
56 print("BUG HERE !!!") 59 print("BUG HERE !!!")
57 60
58 # Monday first 61 # Monday first
59 ds = elementary.Dayselector(win) 62 ds = Dayselector(win)
60 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 63 ds.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
61 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5) 64 ds.size_hint_align = (evas.EVAS_HINT_FILL, 0.5)
62 ds.callback_dayselector_changed_add(cb_changed) 65 ds.callback_dayselector_changed_add(cb_changed)
diff --git a/examples/elementary/test_diskselector.py b/examples/elementary/test_diskselector.py
index e898d70..953013c 100644
--- a/examples/elementary/test_diskselector.py
+++ b/examples/elementary/test_diskselector.py
@@ -1,16 +1,20 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.icon import Icon
10from efl.elementary.diskselector import Diskselector
7 11
8months=["January", "February", "March", "April", "May", "June", "August", "September", "October", "November", "December"] 12months=["January", "February", "March", "April", "May", "June", "August", "September", "October", "November", "December"]
9weekdays=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] 13weekdays=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
10months_short=["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] 14months_short=["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
11 15
12def disk_create(win, rnd): 16def disk_create(win, rnd):
13 di = elementary.Diskselector(win) 17 di = Diskselector(win)
14 for m in months: 18 for m in months:
15 if m == "August": 19 if m == "August":
16 it = di.item_append(m) 20 it = di.item_append(m)
@@ -27,18 +31,18 @@ def cb_sel(ds, item):
27 31
28 32
29def diskselector_clicked(obj): 33def diskselector_clicked(obj):
30 win = elementary.Window("diskselector", elementary.ELM_WIN_BASIC) 34 win = Window("diskselector", elementary.ELM_WIN_BASIC)
31 win.title = "Diskselector test" 35 win.title = "Diskselector test"
32 win.autodel = True 36 win.autodel = True
33 if obj is None: 37 if obj is None:
34 win.callback_delete_request_add(lambda o: elementary.exit()) 38 win.callback_delete_request_add(lambda o: elementary.exit())
35 39
36 bg = elementary.Background(win) 40 bg = Background(win)
37 win.resize_object_add(bg) 41 win.resize_object_add(bg)
38 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 42 bg.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
39 bg.show() 43 bg.show()
40 44
41 vbox = elementary.Box(win) 45 vbox = Box(win)
42 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) 46 vbox.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
43 win.resize_object_add(vbox) 47 win.resize_object_add(vbox)
44 vbox.show() 48 vbox.show()
@@ -67,9 +71,9 @@ def diskselector_clicked(obj):
67 di.show() 71 di.show()
68 di.side_text_max_length = 4 72 di.side_text_max_length = 4
69 73
70 ic = elementary.Icon(win) 74 ic = Icon(win)
71 ic.file = "images/logo_small.png" 75 ic.file = "images/logo_small.png"
72 di = elementary.Diskselector(win) 76 di = Diskselector(win)
73 di.item_append("Sunday", ic) 77 di.item_append("Sunday", ic)
74 for day in weekdays: 78 for day in weekdays:
75 di.item_append(day) 79 di.item_append(day)
@@ -79,9 +83,9 @@ def diskselector_clicked(obj):
79 vbox.pack_end(di) 83 vbox.pack_end(di)
80 di.show() 84 di.show()
81 85
82 ic = elementary.Icon(win) 86 ic = Icon(win)
83 ic.file = "images/logo_small.png" 87 ic.file = "images/logo_small.png"
84 di = elementary.Diskselector(win) 88 di = Diskselector(win)
85 di.item_append("머리스타일", ic) 89 di.item_append("머리스타일", ic)
86 for lan in ["プロが伝授する", "生上访要求政府", "English", "والشريعة", "עִבְרִית", "Grüßen"]: 90 for lan in ["プロが伝授する", "生上访要求政府", "English", "والشريعة", "עִבְרִית", "Grüßen"]:
87 di.item_append(lan) 91 di.item_append(lan)
@@ -92,7 +96,7 @@ def diskselector_clicked(obj):
92 vbox.pack_end(di) 96 vbox.pack_end(di)
93 di.show() 97 di.show()
94 98
95 di = elementary.Diskselector(win) 99 di = Diskselector(win)
96 di.display_item_num = 5 100 di.display_item_num = 5
97 for m in months_short: 101 for m in months_short:
98 di.item_append(m) 102 di.item_append(m)
@@ -104,7 +108,7 @@ def diskselector_clicked(obj):
104 di.show() 108 di.show()
105 di.last_item.selected = True 109 di.last_item.selected = True
106 110
107 di = elementary.Diskselector(win) 111 di = Diskselector(win)
108 di.display_item_num = 7 112 di.display_item_num = 7
109 for i in range(31): 113 for i in range(31):
110 di.item_append(str(i)) 114 di.item_append(str(i))
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index 135e276..00f354c 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -1,9 +1,16 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4from efl import elementary
5from efl import evas 4from efl import evas
6 5from efl import elementary
6from efl.elementary.window import Window
7from efl.elementary.background import Background
8from efl.elementary.box import Box
9from efl.elementary.button import Button
10from efl.elementary.entry import Entry
11from efl.elementary.list import List
12from efl.elementary.frame import Frame
13from efl.elementary.label import Label
7 14
8def my_entry_bt_1(bt, en): 15def my_entry_bt_1(bt, en):
9 en.entry_set("") 16 en.entry_set("")
@@ -24,21 +31,21 @@ def my_entry_anchor_test(obj, anchor, en, *args, **kwargs):
24 31
25 32
26def entry_clicked(obj, item=None): 33