summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-11-07 13:05:14 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2013-11-07 13:05:14 +0200
commitaf72b465e271c749c5ad9da8b71111d3b45101bc (patch)
tree6ba7345ef5f609cabda73274b72250e154ed405c
parent52c60b0e0866a7f389643e39f5303b3d004d9f3b (diff)
Elementary: Fix small issues in examples
-rw-r--r--examples/elementary/test_calendar.py3
-rw-r--r--examples/elementary/test_entry.py18
-rw-r--r--examples/elementary/test_floating.py4
-rw-r--r--examples/elementary/test_popup.py2
4 files changed, 16 insertions, 11 deletions
diff --git a/examples/elementary/test_calendar.py b/examples/elementary/test_calendar.py
index f774653..befe3a2 100644
--- a/examples/elementary/test_calendar.py
+++ b/examples/elementary/test_calendar.py
@@ -9,7 +9,8 @@ from efl.elementary.button import Button
9from efl.elementary.calendar_elm import Calendar, \ 9from efl.elementary.calendar_elm import Calendar, \
10 ELM_DAY_MONDAY, ELM_DAY_THURSDAY, ELM_DAY_SATURDAY, \ 10 ELM_DAY_MONDAY, ELM_DAY_THURSDAY, ELM_DAY_SATURDAY, \
11 ELM_CALENDAR_UNIQUE, ELM_CALENDAR_DAILY, ELM_CALENDAR_WEEKLY, \ 11 ELM_CALENDAR_UNIQUE, ELM_CALENDAR_DAILY, ELM_CALENDAR_WEEKLY, \
12 ELM_CALENDAR_MONTHLY, ELM_CALENDAR_ANNUALLY 12 ELM_CALENDAR_MONTHLY, ELM_CALENDAR_ANNUALLY, \
13 ELM_CALENDAR_SELECT_MODE_NONE, ELM_CALENDAR_SELECT_MODE_ONDEMAND
13 14
14from datetime import datetime 15from datetime import datetime
15 16
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index 5141295..44fe8aa 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -158,14 +158,14 @@ def entry_scrolled_clicked(obj, item = None):
158 158
159 # disabled entry 159 # disabled entry
160 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ, 160 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ,
161 size_hint_align=FILL_HORIZ, scrollbar_policy=SCROLL_POLICY_OFF, 161 size_hint_align=FILL_HORIZ, policy=SCROLL_POLICY_OFF,
162 text="Disabled entry", single_line=True, disabled=True) 162 text="Disabled entry", single_line=True, disabled=True)
163 en.show() 163 en.show()
164 bx.pack_end(en) 164 bx.pack_end(en)
165 165
166 # password entry 166 # password entry
167 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ, 167 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ,
168 size_hint_align=FILL_HORIZ, scrollbar_policy=SCROLL_POLICY_OFF, 168 size_hint_align=FILL_HORIZ, policy=SCROLL_POLICY_OFF,
169 password=True, single_line=True, text="Access denied, give up!", 169 password=True, single_line=True, text="Access denied, give up!",
170 disabled=True) 170 disabled=True)
171 en.show() 171 en.show()
@@ -173,7 +173,7 @@ def entry_scrolled_clicked(obj, item = None):
173 173
174 # multi-line disable entry 174 # multi-line disable entry
175 en = ScrollableEntry(win, size_hint_weight=EXPAND_BOTH, 175 en = ScrollableEntry(win, size_hint_weight=EXPAND_BOTH,
176 size_hint_align=FILL_BOTH, scrollbar_policy=SCROLL_POLICY_ON, 176 size_hint_align=FILL_BOTH, policy=SCROLL_POLICY_ON,
177 disabled=True) 177 disabled=True)
178 en.context_menu_item_add("Hello") 178 en.context_menu_item_add("Hello")
179 en.context_menu_item_add("World") 179 en.context_menu_item_add("World")
@@ -192,7 +192,7 @@ def entry_scrolled_clicked(obj, item = None):
192 # Single line selected entry 192 # Single line selected entry
193 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ, 193 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ,
194 size_hint_align=FILL_HORIZ, text="This is a single line", 194 size_hint_align=FILL_HORIZ, text="This is a single line",
195 scrollbar_policy=SCROLL_POLICY_OFF, single_line=True) 195 policy=SCROLL_POLICY_OFF, single_line=True)
196 en.select_all() 196 en.select_all()
197 en.show() 197 en.show()
198 bx.pack_end(en) 198 bx.pack_end(en)
@@ -200,7 +200,7 @@ def entry_scrolled_clicked(obj, item = None):
200 # Filter test 200 # Filter test
201 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ, 201 en = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ,
202 size_hint_align=FILL_HORIZ, text="Filter test", 202 size_hint_align=FILL_HORIZ, text="Filter test",
203 scrollbar_policy=SCROLL_POLICY_OFF, single_line=True) 203 policy=SCROLL_POLICY_OFF, single_line=True)
204 en.show() 204 en.show()
205 bx.pack_end(en) 205 bx.pack_end(en)
206 206
@@ -253,7 +253,7 @@ def entry_scrolled_clicked(obj, item = None):
253 # en.size_hint_weight = EVAS_HINT_EXPAND, 0.0 253 # en.size_hint_weight = EVAS_HINT_EXPAND, 0.0
254 # en.size_hint_align = EVAS_HINT_FILL, 0.5 254 # en.size_hint_align = EVAS_HINT_FILL, 0.5
255 # en.text = "And now only 30 bytes" 255 # en.text = "And now only 30 bytes"
256 # en.scrollbar_policy = ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF 256 # en.policy = ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF
257 # en.single_line = True 257 # en.single_line = True
258 # en.show() 258 # en.show()
259 # bx.pack_end(en) 259 # bx.pack_end(en)
@@ -264,13 +264,13 @@ def entry_scrolled_clicked(obj, item = None):
264 264
265 # Single line password entry 265 # Single line password entry
266 en_p = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ, 266 en_p = ScrollableEntry(win, size_hint_weight=EXPAND_HORIZ,
267 size_hint_align=FILL_HORIZ, scrollbar_policy=SCROLL_POLICY_OFF, 267 size_hint_align=FILL_HORIZ, policy=SCROLL_POLICY_OFF,
268 text="Password here", single_line=True, password=True) 268 text="Password here", single_line=True, password=True)
269 en_p.show() 269 en_p.show()
270 bx.pack_end(en_p) 270 bx.pack_end(en_p)
271 271
272 # entry with icon/end widgets 272 # entry with icon/end widgets
273 en = ScrollableEntry(win, scrollbar_policy=SCROLL_POLICY_OFF, 273 en = ScrollableEntry(win, policy=SCROLL_POLICY_OFF,
274 single_line=True, size_hint_weight=EXPAND_BOTH, 274 single_line=True, size_hint_weight=EXPAND_BOTH,
275 size_hint_align=FILL_BOTH, text="entry with icon and end objects") 275 size_hint_align=FILL_BOTH, text="entry with icon and end objects")
276 bt = Icon(win, standard="home", size_hint_min=(48, 48), 276 bt = Icon(win, standard="home", size_hint_min=(48, 48),
@@ -286,7 +286,7 @@ def entry_scrolled_clicked(obj, item = None):
286 286
287 # markup entry 287 # markup entry
288 en = ScrollableEntry(win, size_hint_weight=EXPAND_BOTH, 288 en = ScrollableEntry(win, size_hint_weight=EXPAND_BOTH,
289 size_hint_align=FILL_BOTH, scrollbar_policy=SCROLL_POLICY_ON) 289 size_hint_align=FILL_BOTH, policy=SCROLL_POLICY_ON)
290 en.text = "This is an entry widget in this window that<br/>"\ 290 en.text = "This is an entry widget in this window that<br/>"\
291 "uses markup <b>like this</> for styling and<br/>"\ 291 "uses markup <b>like this</> for styling and<br/>"\
292 "formatting <em>like this</>, as well as<br/>"\ 292 "formatting <em>like this</>, as well as<br/>"\
diff --git a/examples/elementary/test_floating.py b/examples/elementary/test_floating.py
index 5072bdb..aa1abc3 100644
--- a/examples/elementary/test_floating.py
+++ b/examples/elementary/test_floating.py
@@ -1,3 +1,7 @@
1#!/usr/bin/env python
2# encoding: utf-8
3
4import os
1from math import sin 5from math import sin
2 6
3from efl import elementary 7from efl import elementary
diff --git a/examples/elementary/test_popup.py b/examples/elementary/test_popup.py
index 718f255..dc253d2 100644
--- a/examples/elementary/test_popup.py
+++ b/examples/elementary/test_popup.py
@@ -23,7 +23,7 @@ def cb_bnt_close(btn, popup):
23 popup.delete() 23 popup.delete()
24 24
25def cb_btn_restack(btn, popup): 25def cb_btn_restack(btn, popup):
26 im = evas.FilledImage(popup.evas); 26 im = FilledImage(popup.evas);
27 im.file = os.path.join(img_path, "mystrale_2.jpg") 27 im.file = os.path.join(img_path, "mystrale_2.jpg")
28 im.move(40, 40) 28 im.move(40, 40)
29 im.resize(500, 320) 29 im.resize(500, 320)