aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-13 13:44:22 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-13 13:44:22 +0200
commit79979d9d2da86175e6331e565473116d65c230e4 (patch)
tree783ac3d18e5de202912545c7b631b079a61760de /examples/elementary
parentNew 1.18 API: elm.Entry.file_text_format (diff)
downloadpython-efl-79979d9d2da86175e6331e565473116d65c230e4.tar.gz
New 1.18 API: elm.Slider.indicator_show_on_focus
with test
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_slider.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/elementary/test_slider.py b/examples/elementary/test_slider.py
index eb0d9cb..f55bf9e 100644
--- a/examples/elementary/test_slider.py
+++ b/examples/elementary/test_slider.py
@@ -129,6 +129,14 @@ def slider_clicked(obj):
bx.pack_end(sl)
sl.show()
+ # indicator show on focus
+ sl = Slider(bx, text="Indicator on focus", indicator_show_on_focus=True,
+ unit_format="%1.2f units", indicator_format="%1.2f",
+ span_size=120, # this shouldn't be needed, see T4357
+ size_hint_align=FILL_HORIZ, size_hint_weight=EXPAND_HORIZ)
+ bx.pack_end(sl)
+ sl.show()
+
# disabled horizontally inverted slider
ic = Icon(bx, file=os.path.join(img_path, "logo_small.png"),
size_hint_aspect=(EVAS_ASPECT_CONTROL_VERTICAL, 1, 1))