aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-12 22:46:27 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-12 22:46:27 +0200
commiteaa09b6b163f528f635c4cb3cd9a8d3759b6524a (patch)
tree01ab20befbdb5c07765cd3dfa9652fd427bb9ac0 /examples
parentNew 1.18 API: elm.Popup.align (diff)
downloadpython-efl-eaa09b6b163f528f635c4cb3cd9a8d3759b6524a.tar.gz
New 1.18 API: elm.Popup.scrollable
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_popup.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/elementary/test_popup.py b/examples/elementary/test_popup.py
index 77b1081..fdea0f1 100644
--- a/examples/elementary/test_popup.py
+++ b/examples/elementary/test_popup.py
@@ -185,7 +185,15 @@ def cb_popup_center_title_1button_hide_effect(li, item, win):
popup.show()
-
+def cb_popup_scrollable(li, item, win):
+ lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
+ popup = Popup(win, text=lorem*160, scrollable=True,
+ size_hint_weight=EXPAND_BOTH)
+ bt = Button(win, text="Close")
+ bt.callback_clicked_add(cb_bnt_close, popup)
+ popup.part_content_set("button1", bt)
+ popup.show()
+
def cb_popup_align(li, item, win):
popup = Popup(win, text="Align (0.2, 0.8)", align=(0.2, 0.8),
size_hint_weight=EXPAND_BOTH)
@@ -243,6 +251,8 @@ def popup_clicked(obj):
cb_popup_center_text_1button_hide_show, win)
li.item_append("popup-center-title + text + 1 button + hide effect", None, None,
cb_popup_center_title_1button_hide_effect, win)
+ li.item_append("Popup Scrollable", None, None,
+ cb_popup_scrollable, win)
li.item_append("Popup Align (0.2, 0.8)", None, None,
cb_popup_align, win)
for name, val in orients: