summaryrefslogtreecommitdiff
path: root/examples/elementary/test_ctxpopup.py
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/elementary/test_ctxpopup.py
parent006052543f3863fb0e4975476d0bc03e06099279 (diff)
New 1.21 API: Ctxpopup item_insert_before/after
with test
Diffstat (limited to 'examples/elementary/test_ctxpopup.py')
-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):
58 it = item_new(cp, "Delete file", "user-trash") 58 it = item_new(cp, "Delete file", "user-trash")
59 it = item_new(cp, "Navigate to folder", "folder") 59 it = item_new(cp, "Navigate to folder", "folder")
60 it.disabled = True 60 it.disabled = True
61 it = item_new(cp, "Edit entry", "list-add") 61 it = item_new(cp, "Edit entry", "document-edit")
62 it = item_new(cp, "Sate date and time", "list-remove") 62 it = item_new(cp, "Sate date and time", "list-remove")
63 it.disabled = True 63 it.disabled = True
64 64
65 ic = Icon(cp, standard="user-home", resizable=(False,False)) 65 ic = Icon(cp, standard="list-add", resizable=(False,False))
66 cp.item_prepend("Prepended item", ic, cb_items) 66 it2 = cp.item_prepend("Prepended item", ic, cb_items)
67
68 ic = Icon(cp, standard="list-add", resizable=(False,False))
69 cp.item_insert_before(it2, "Before the Prepended", ic)
70
71 ic = Icon(cp, standard="list-add", resizable=(False,False))
72 cp.item_insert_after(it2, "After the Prepended", ic)
67 73
68 (x, y) = li.evas.pointer_canvas_xy_get() 74 (x, y) = li.evas.pointer_canvas_xy_get()
69 cp.move(x, y) 75 cp.move(x, y)