aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-07-16 20:00:50 +0200
committerDave Andreoli <dave@gurumeditation.it>2018-07-16 20:00:50 +0200
commit18ca98e66f9e9bec7a0048d44310f016ab2ee76c (patch)
tree8ec38b2d178352ead2d9536d722fb7abc4571b2e /examples
parentFix 2 changed class names (diff)
downloadpython-efl-18ca98e66f9e9bec7a0048d44310f016ab2ee76c.tar.gz
New 1.21 API: Ctxpopup item_insert_before/after
with test
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_ctxpopup.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/elementary/test_ctxpopup.py b/examples/elementary/test_ctxpopup.py
index cb00e53..b6aa8d2 100644
--- a/examples/elementary/test_ctxpopup.py
+++ b/examples/elementary/test_ctxpopup.py
@@ -58,12 +58,18 @@ def cb_item1(li, item):
it = item_new(cp, "Delete file", "user-trash")
it = item_new(cp, "Navigate to folder", "folder")
it.disabled = True
- it = item_new(cp, "Edit entry", "list-add")
+ it = item_new(cp, "Edit entry", "document-edit")
it = item_new(cp, "Sate date and time", "list-remove")
it.disabled = True
- ic = Icon(cp, standard="user-home", resizable=(False,False))
- cp.item_prepend("Prepended item", ic, cb_items)
+ ic = Icon(cp, standard="list-add", resizable=(False,False))
+ it2 = cp.item_prepend("Prepended item", ic, cb_items)
+
+ ic = Icon(cp, standard="list-add", resizable=(False,False))
+ cp.item_insert_before(it2, "Before the Prepended", ic)
+
+ ic = Icon(cp, standard="list-add", resizable=(False,False))
+ cp.item_insert_after(it2, "After the Prepended", ic)
(x, y) = li.evas.pointer_canvas_xy_get()
cp.move(x, y)