aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-07-15 10:44:58 +0200
committerDave Andreoli <dave@gurumeditation.it>2017-07-15 10:44:58 +0200
commit6bd7daa8834dadc2582a460cb7a834154e8903cc (patch)
tree2ae1d0d40c8d219dc188561b9c68df43f9106e66 /examples/elementary
parentDocumentation: Add better documentation about object lifetime (diff)
downloadpython-efl-6bd7daa8834dadc2582a460cb7a834154e8903cc.tar.gz
New 1.20 API: elm.Spinner min/max,reached events
with test
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_spinner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/elementary/test_spinner.py b/examples/elementary/test_spinner.py
index 6b9457a..727cc41 100644
--- a/examples/elementary/test_spinner.py
+++ b/examples/elementary/test_spinner.py
@@ -34,6 +34,8 @@ def spinner_clicked(obj):
sp = Spinner(win, label_format="Percentage %%%1.2f something",
step=5.0, min_max=(0.0, 100.0), size_hint_weight=EXPAND_BOTH,
size_hint_align=FILL_HORIZ)
+ sp.callback_min_reached_add(lambda o: print("Min reached"))
+ sp.callback_max_reached_add(lambda o: print("Max reached"))
bx.pack_end(sp)
sp.show()