aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-21 22:31:07 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-21 22:31:07 +0100
commitf03f83fba92ada0720a77a5bba4598487f005477 (patch)
treef22ea29d02e46de08d0c3cd5764f91d42b33a19a /examples/elementary
parentNew 1.17 API: edje size_class family functions (diff)
downloadpython-efl-f03f83fba92ada0720a77a5bba4598487f005477.tar.gz
New 1.17 API: elm.Configuration.context_menu_disabled
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_entry.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index 637343d..b4c43bb 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -5,6 +5,7 @@ from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH, \
EXPAND_HORIZ, FILL_HORIZ
from efl import elementary
from efl.elementary.check import Check
+from efl.elementary.configuration import Configuration
from efl.elementary.window import StandardWindow
from efl.elementary.background import Background
from efl.elementary.box import Box
@@ -45,6 +46,9 @@ def my_entry_bt_3(bt, en):
def my_entry_bt_4(bt, en):
en.entry_insert("Insert some <b>BOLD</> text")
+def my_entry_bt_5(chk):
+ Configuration().context_menu_disabled = chk.state
+
def my_entry_anchor_test(obj, anchor, en, *args, **kwargs):
en.entry_insert("ANCHOR CLICKED")
@@ -95,6 +99,12 @@ 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.callback_changed_add(my_entry_bt_5)
+ bx2.pack_end(ck)
+ ck.show()
+
bx.pack_end(bx2)
bx2.show()