aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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
parentNew 1.17 API: ELM_GEN[GRID/LIST]_ITEM_SCROLLTO_BOTTOM (diff)
downloadpython-efl-86aa8c51383999a424d58bdc322fe231c53e39ea.tar.gz
New 1.17 API: elm.Ctxpopup "geometry,update" smart cb
Diffstat (limited to 'examples')
-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):
if "img" in cp.data:
cp.data["img"].delete()
+def cb_geometry_update(cp, geom):
+ print("geometry,update", geom)
+
def cb_item1(li, item):
cp = Ctxpopup(li)
+ cp.callback_geometry_update_add(cb_geometry_update)
it = item_new(cp, "Go to home folder", "home")
it = item_new(cp, "Save file", "file")
it = item_new(cp, "Delete file", "delete")