aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-08-03 16:37:25 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-08-03 16:37:25 +0200
commitf3df1b4cc9ea68859d245d5bf3a9d3d0285f0d27 (patch)
tree8fa0b7551913b324fd5c3fc31f638c8060fb4d5d /examples/elementary
parentNew 1.15 signal for Entry: context,open (diff)
downloadpython-efl-f3df1b4cc9ea68859d245d5bf3a9d3d0285f0d27.tar.gz
New 1.15 API: Scroller.wheel_disabled, with test
Diffstat (limited to 'examples/elementary')
-rw-r--r--examples/elementary/test_scroller.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/elementary/test_scroller.py b/examples/elementary/test_scroller.py
index 6178a79..2c3aab8 100644
--- a/examples/elementary/test_scroller.py
+++ b/examples/elementary/test_scroller.py
@@ -70,6 +70,9 @@ def cb_loop_v(chk, scroller):
h, v = scroller.loop
scroller.loop = h, chk.state
+def cb_wheel_disabled(chk, scroller):
+ scroller.wheel_disabled = chk.state
+
def scroller_clicked(obj):
win = StandardWindow("scroller", "Scroller", autodel=True, size=(320, 320))
@@ -155,6 +158,11 @@ def scroller_clicked(obj):
box.pack_end(ck)
ck.show()
+ ck = Check(box, text="Wheel disabled")
+ ck.callback_changed_add(cb_wheel_disabled, sc)
+ box.pack_end(ck)
+ ck.show()
+
bt = Button(win, text="to 300 300", size_hint_expand=EXPAND_BOTH,
size_hint_align=(0.1, 0.1))
bt.callback_clicked_add(my_scroller_go_300_300, sc)