aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-13 15:18:26 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-13 15:18:26 +0200
commit3d31901da738f0f969c0cffc3429cd11f160ba34 (patch)
treeaa9e1986c3d4f358e15f868e7c03362bba4af436 /examples
parentNew 1.18 API: elm.Slider.indicator_show_on_focus (diff)
downloadpython-efl-3d31901da738f0f969c0cffc3429cd11f160ba34.tar.gz
new 1.18 API: elm.Window.noblank
with test
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_win.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/elementary/test_win.py b/examples/elementary/test_win.py
index 89396f7..8dba282 100644
--- a/examples/elementary/test_win.py
+++ b/examples/elementary/test_win.py
@@ -35,6 +35,10 @@ def cb_iconify_and_deiconify(bt, win):
def cb_win_moved(win):
print("MOVE - win geom: x %d, y %d, w %d, h %d" % win.geometry)
+def set_and_report(win, prop, val):
+ setattr(win, prop, val)
+ print("Property: '%s' is now: '%s'" % (prop, getattr(win, prop)))
+
def window_states_clicked(obj):
win = Window("window-states", ELM_WIN_BASIC, autodel=True,
title="Window States test", size=(280, 400))
@@ -114,12 +118,17 @@ def window_states_clicked(obj):
ck.show()
ck = Check(win, text="Borderless")
- ck.callback_changed_add(lambda c: win.borderless_set(c.state))
+ ck.callback_changed_add(lambda c: set_and_report(win, 'borderless', c.state))
hbox.pack_end(ck)
ck.show()
ck = Check(win, text="Fullscreen")
- ck.callback_changed_add(lambda c: win.fullscreen_set(c.state))
+ ck.callback_changed_add(lambda c: set_and_report(win, 'fullscreen', c.state))
+ hbox.pack_end(ck)
+ ck.show()
+
+ ck = Check(win, text="NoBlank")
+ ck.callback_changed_add(lambda c: set_and_report(win, 'noblank', c.state))
hbox.pack_end(ck)
ck.show()