aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-10-07 22:05:28 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-10-07 22:05:28 +0200
commita7c8b2d40d227a39e842df350c2dd2ee2de31ed8 (patch)
tree35038c151f62ae192eac3d6b3cdb7fa89eda4965 /examples
parentNew 1.16 API: Configuration.scroll_thumbscroll_smooth_* (diff)
downloadpython-efl-a7c8b2d40d227a39e842df350c2dd2ee2de31ed8.tar.gz
New 1.16 API: Hoversel.label_auto_changed
...what a bad name for this prop
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_hoversel.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/elementary/test_hoversel.py b/examples/elementary/test_hoversel.py
index 9672c54..07469c8 100644
--- a/examples/elementary/test_hoversel.py
+++ b/examples/elementary/test_hoversel.py
@@ -77,7 +77,6 @@ def hoversel_clicked(obj):
bx.pack_end(bt)
bt.show()
-
ic = Icon(win, file=os.path.join(img_path, "sky_03.jpg"))
bt = Hoversel(win, hover_parent=win, text="Icon + Label", content=ic,
size_hint_weight=WEIGHT_ZERO, size_hint_align=ALIGN_CENTER)
@@ -90,6 +89,17 @@ def hoversel_clicked(obj):
bx.pack_end(bt)
bt.show()
+ bt = Hoversel(win, hover_parent=win, text="Label auto changed",
+ label_auto_changed=True,
+ size_hint_weight=WEIGHT_ZERO, size_hint_align=ALIGN_CENTER)
+
+ bt.item_add("Item 1", "apps", ELM_ICON_STANDARD)
+ bt.item_add("Item 2", "arrow_down", ELM_ICON_STANDARD)
+ bt.item_add("Item 3", "home", ELM_ICON_STANDARD)
+ bt.item_add("Item 4", "close", ELM_ICON_STANDARD)
+ bx.pack_end(bt)
+ bt.show()
+
win.show()