summaryrefslogtreecommitdiff
path: root/examples/elementary/test_spinner.py
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/test_spinner.py
parent5864a9dd2d5d43461f9098708fbf14cf53a0f116 (diff)
New 1.20 API: elm.Spinner min/max,reached events
with test
Diffstat (limited to 'examples/elementary/test_spinner.py')
-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):
34 sp = Spinner(win, label_format="Percentage %%%1.2f something", 34 sp = Spinner(win, label_format="Percentage %%%1.2f something",
35 step=5.0, min_max=(0.0, 100.0), size_hint_weight=EXPAND_BOTH, 35 step=5.0, min_max=(0.0, 100.0), size_hint_weight=EXPAND_BOTH,
36 size_hint_align=FILL_HORIZ) 36 size_hint_align=FILL_HORIZ)
37 sp.callback_min_reached_add(lambda o: print("Min reached"))
38 sp.callback_max_reached_add(lambda o: print("Max reached"))
37 bx.pack_end(sp) 39 bx.pack_end(sp)
38 sp.show() 40 sp.show()
39 41