aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary/test_naviframe.py
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-12-07 10:28:08 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2013-12-07 10:28:08 +0200
commit7fbc6b83e67a720a748b2ce2dd2bd21ef6fb5a9c (patch)
tree442b5021379e92825daec60bedd43a385a793acb /examples/elementary/test_naviframe.py
parentAPI review: Documented changes, corrected str repr, clean up. (diff)
downloadpython-efl-7fbc6b83e67a720a748b2ce2dd2bd21ef6fb5a9c.tar.gz
Elementary: Removed use of deprecated methods in examples.
Diffstat (limited to 'examples/elementary/test_naviframe.py')
-rw-r--r--examples/elementary/test_naviframe.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/elementary/test_naviframe.py b/examples/elementary/test_naviframe.py
index 6a5d700..89819df 100644
--- a/examples/elementary/test_naviframe.py
+++ b/examples/elementary/test_naviframe.py
@@ -21,9 +21,6 @@ img_path = os.path.join(script_path, "images")
def navi_pop(bt, nf):
nf.item_pop()
-def navi_promote(bt, nf, item):
- item.item_promote()
-
def title_visible(obj, item):
item.title_visible = not item.title_visible
@@ -81,7 +78,7 @@ def page5(bt, nf):
fill_inside=True, style="shadow")
item = nf.item_insert_after(nf.top_item_get(), "Page 5", bt, bt2, content, "basic")
- item.part_text_set("subtitle", "This page is inserted without transition (TODO)")
+ item.part_text_set("subtitle", "This page is inserted without transition")
def page6(bt, nf):
bt = Button(nf, text="Page 5")
@@ -101,7 +98,7 @@ def page7(bt, nf):
bt.callback_clicked_add(navi_pop, nf)
bt2 = Button(nf, text="Page 1")
- bt2.callback_clicked_add(navi_promote, nf, nf.data["page1"])
+ bt2.callback_clicked_add(lambda x: nf.data["page1"].promote())
content = Photo(nf, file=os.path.join(img_path, "sky_02.jpg"),
fill_inside=True, style="shadow")
@@ -112,7 +109,8 @@ def page7(bt, nf):
def naviframe_clicked(obj):
win = StandardWindow("naviframe", "Naviframe test", autodel=True,
- size=(400, 600))
+ size=(400, 400))
+ win.focus_highlight_enabled = True
if obj is None:
win.callback_delete_request_add(lambda o: elementary.exit())