aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-09 21:10:16 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-09 21:10:16 +0200
commit4e57019e1ea1c5227859435b210a00d8d1824665 (patch)
tree90d4c31566ac55ae378a1bd6e7c2a56d77dba255 /examples
parentNew 1.18 API: edje.Edje.part_box_insert_after() (diff)
downloadpython-efl-4e57019e1ea1c5227859435b210a00d8d1824665.tar.gz
New 1.18 API: elm.Entry.select_allow
with test
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_entry.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index f1693b7..880f4fb 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -105,8 +105,7 @@ def entry_clicked(obj, item=None):
bx2.pack_end(bt)
bt.show()
- ck = Check(win, text="Context menu disabled")#, size_hint_weight=EXPAND_HORIZ,
- # size_hint_align=FILL_BOTH)
+ ck = Check(win, text="Context menu disabled")
ck.callback_changed_add(my_entry_bt_5)
bx2.pack_end(ck)
ck.show()
@@ -128,6 +127,11 @@ def entry_clicked(obj, item=None):
bt.callback_clicked_add(my_entry_bt_7, en)
bx2.pack_end(bt)
bt.show()
+
+ ck = Check(win, text="Select allow", state=True)
+ ck.callback_changed_add(lambda c: setattr(en, "select_allow", c.state))
+ bx2.pack_end(ck)
+ ck.show()
bx.pack_end(bx2)
bx2.show()