davemds pushed a commit to branch master.

commit 54bda657e011f86ef64d07b0afb99a98b36a40bc
Author: davemds <[email protected]>
Date:   Sun Mar 31 16:37:53 2013 +0200

    Python-EFL: add a test for Window.fullscreen prop
---
 examples/elementary/test_win.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/examples/elementary/test_win.py b/examples/elementary/test_win.py
index 5f68bbf..d1527af 100644
--- a/examples/elementary/test_win.py
+++ b/examples/elementary/test_win.py
@@ -15,11 +15,16 @@ from efl.elementary.slider import Slider
 
 def cb_alpha(bt, win, bg, on):
     win.alpha = on
+    print("alpha: %s" % win.alpha)
     if on:
         bg.hide()
     else:
         bg.show()
 
+def cb_fullscreen(bt, win, fs):
+    win.fullscreen = fs
+    print("fullscreen: %s" % win.fullscreen)
+
 def cb_rot(bt, win, ck, rot):
     if ck.state:
         win.rotation_with_resize_set(rot)
@@ -65,6 +70,15 @@ def window_states_clicked(obj):
         hbox.pack_end(bt)
         bt.show()
 
+    for state in [True, False]:
+        bt = Button(win)
+        bt.text = "FS " + ("On" if state else "Off")
+        bt.size_hint_align = (evas.EVAS_HINT_FILL, 0.0)
+        bt.size_hint_weight = (evas.EVAS_HINT_EXPAND, 0.0)
+        bt.callback_clicked_add(cb_fullscreen, win, state)
+        hbox.pack_end(bt)
+        bt.show()
+
     sl = Slider(win)
     sl.text = "Visual test"
     sl.indicator_format = "%3.0f"

-- 

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2

Reply via email to