summaryrefslogtreecommitdiff
path: root/examples/elementary/test_ctxpopup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-23 14:33:01 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-23 14:33:01 +0100
commit86aa8c51383999a424d58bdc322fe231c53e39ea (patch)
treeadb771ac653f34f25289cb94a2dbaecd1122218a /examples/elementary/test_ctxpopup.py
parent9809eb2739b64b11f0072a353308106dd5a4ece2 (diff)
New 1.17 API: elm.Ctxpopup "geometry,update" smart cb
Diffstat (limited to 'examples/elementary/test_ctxpopup.py')
-rw-r--r--examples/elementary/test_ctxpopup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/elementary/test_ctxpopup.py b/examples/elementary/test_ctxpopup.py
index fbe154a..e1b86f2 100644
--- a/examples/elementary/test_ctxpopup.py
+++ b/examples/elementary/test_ctxpopup.py
@@ -47,8 +47,12 @@ def cb_dismissed(cp):
47 if "img" in cp.data: 47 if "img" in cp.data:
48 cp.data["img"].delete() 48 cp.data["img"].delete()
49 49
50def cb_geometry_update(cp, geom):
51 print("geometry,update", geom)
52
50def cb_item1(li, item): 53def cb_item1(li, item):
51 cp = Ctxpopup(li) 54 cp = Ctxpopup(li)
55 cp.callback_geometry_update_add(cb_geometry_update)
52 it = item_new(cp, "Go to home folder", "home") 56 it = item_new(cp, "Go to home folder", "home")
53 it = item_new(cp, "Save file", "file") 57 it = item_new(cp, "Save file", "file")
54 it = item_new(cp, "Delete file", "delete") 58 it = item_new(cp, "Delete file", "delete")