|
From: Enlightenment S. <no-...@en...> - 2012-05-23 21:58:18
|
Log: python-elementary: Bring tests up to date. Author: kuuko Date: 2012-05-23 14:58:12 -0700 (Wed, 23 May 2012) New Revision: 71374 Trac: http://trac.enlightenment.org/e/changeset/71374 Modified: trunk/BINDINGS/python/python-elementary/tests/test_box.py trunk/BINDINGS/python/python-elementary/tests/test_bubble.py trunk/BINDINGS/python/python-elementary/tests/test_button.py trunk/BINDINGS/python/python-elementary/tests/test_check.py trunk/BINDINGS/python/python-elementary/tests/test_gengrid.py trunk/BINDINGS/python/python-elementary/tests/test_hover.py trunk/BINDINGS/python/python-elementary/tests/test_hoversel.py trunk/BINDINGS/python/python-elementary/tests/test_icon.py trunk/BINDINGS/python/python-elementary/tests/test_list.py trunk/BINDINGS/python/python-elementary/tests/test_radio.py trunk/BINDINGS/python/python-elementary/tests/test_tooltip.py Modified: trunk/BINDINGS/python/python-elementary/tests/test_box.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_box.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_box.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -23,21 +23,21 @@ ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.0, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(evas.EVAS_HINT_EXPAND, 0.5) bx.pack_end(ic) ic.show() @@ -128,21 +128,21 @@ ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.0) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND) bx.pack_end(ic) ic.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_bubble.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_bubble.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_bubble.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -32,7 +32,7 @@ bb = elementary.Bubble(win) bb.text_set("Message 1") - bb.text_part_set("info", "Corner: top_left") + bb.part_text_set("info", "Corner: top_left") bb.content_set(lb) bb.part_content_set("icon", ic) bb.pos = elementary.ELM_BUBBLE_POS_TOP_LEFT @@ -51,7 +51,7 @@ bb = elementary.Bubble(win) bb.text_set("Message 2") - bb.text_part_set("info", "Corner: top_right") + bb.part_text_set("info", "Corner: top_right") bb.content_set(lb) bb.part_content_set("icon", ic) bb.pos = elementary.ELM_BUBBLE_POS_TOP_RIGHT @@ -70,7 +70,7 @@ bb = elementary.Bubble(win) bb.text_set("Message 3") - bb.text_part_set("info", "Corner: bottom_left") + bb.part_text_set("info", "Corner: bottom_left") bb.content_set(ic) bb.pos = elementary.ELM_BUBBLE_POS_BOTTOM_LEFT bb.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) @@ -88,7 +88,7 @@ bb = elementary.Bubble(win) bb.text_set("Message 4") - bb.text_part_set("info", "Corner: bottom_right") + bb.part_text_set("info", "Corner: bottom_right") bb.content_set(lb) bb.part_content_set("icon", ic) bb.pos = elementary.ELM_BUBBLE_POS_BOTTOM_RIGHT Modified: trunk/BINDINGS/python/python-elementary/tests/test_button.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_button.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_button.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -27,17 +27,17 @@ ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) bt = elementary.Button(win) bt.text_set("Icon sized to button") - bt.icon_set(ic) + bt.content_set(ic) bx.pack_end(bt) bt.show() ic.show() ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) bt = elementary.Button(win) bt.text_set("Icon no scale") - bt.icon_set(ic) + bt.content_set(ic) bx.pack_end(bt) bt.show() ic.show() @@ -49,9 +49,9 @@ ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) bt = elementary.Button(win) - bt.icon_set(ic) + bt.content_set(ic) bx.pack_end(bt) bt.show() ic.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_check.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_check.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_check.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -52,7 +52,7 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ck = elementary.Check(win) ck.text_set("Icon no scale") ck.content_set(ic) @@ -85,7 +85,7 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.size_hint_aspect_set(evas.EVAS_ASPECT_CONTROL_VERTICAL, 1, 1) - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ck = elementary.Check(win) ck.content_set(ic) ck.callback_changed_add(ck_4) Modified: trunk/BINDINGS/python/python-elementary/tests/test_gengrid.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_gengrid.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_gengrid.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -61,7 +61,7 @@ # main table tb = elementary.Table(win) win.resize_object_add(tb) - tb.homogenous_set(0) + tb.homogeneous_set(0) tb.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) tb.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_hover.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_hover.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_hover.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -43,7 +43,7 @@ ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) bx.pack_end(ic) ic.show() @@ -124,7 +124,7 @@ ic = elementary.Icon(win) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) bx.pack_end(ic) ic.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_hoversel.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_hoversel.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_hoversel.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -86,7 +86,7 @@ ic = elementary.Icon(win) ic.file_set("images/sky_03.jpg") - bt.icon_set(ic) + bt.content_set(ic) ic.show() bt.item_add("Item 1", "apps", elementary.ELM_ICON_STANDARD) Modified: trunk/BINDINGS/python/python-elementary/tests/test_icon.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_icon.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_icon.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -14,7 +14,7 @@ icon = elementary.Icon(win) icon.file_set("images/logo.png") - icon.scale_set(0, 0) + icon.resizable_set(0, 0) win.resize_object_add(icon) icon.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_list.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_list.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_list.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -25,26 +25,26 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(1, 1) + ic.resizable_set(1, 1) it1 = li.item_append("Hello", ic) ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) li.item_append("Hello", ic) ic = elementary.Icon(win) ic.standard_set("edit") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic2 = elementary.Icon(win) ic2.standard_set("clock") - ic2.scale_set(0, 0) + ic2.resizable_set(0, 0) li.item_append(".", ic, ic2) ic = elementary.Icon(win) ic.standard_set("delete") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic2 = elementary.Icon(win) ic2.standard_set("clock") - ic2.scale_set(0, 0) + ic2.resizable_set(0, 0) it2 = li.item_append("How", ic, ic2) bx = elementary.Box(win) @@ -52,21 +52,21 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.0) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND) bx.pack_end(ic) ic.show() @@ -175,20 +175,20 @@ it = li.item_append("Hello", ic, callback=my_list2_sel) it.selected_set(True) ic = elementary.Icon(win) - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.file_set('images/logo_small.png') li.item_append("world", ic) ic = elementary.Icon(win) ic.standard_set("edit") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) li.item_append(".", ic) ic = elementary.Icon(win) ic.standard_set("delete") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic2 = elementary.Icon(win) ic2.standard_set("clock") - ic2.scale_set(0, 0) + ic2.resizable_set(0, 0) it2 = li.item_append("How", ic, ic2) bx2 = elementary.Box(win) @@ -196,14 +196,14 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx2.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.0) bx2.pack_end(ic) ic.show() @@ -270,19 +270,19 @@ li.item_append("Hello", ic) ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) li.item_append("world", ic) ic = elementary.Icon(win) ic.standard_set("edit") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) li.item_append(".", ic) ic = elementary.Icon(win) ic.standard_set("delete") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic2 = elementary.Icon(win) ic2.standard_set("clock") - ic2.scale_set(0, 0) + ic2.resizable_set(0, 0) it2 = li.item_append("How", ic, ic2) bx = elementary.Box(win) @@ -290,21 +290,21 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.5, 0.0) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND) bx.pack_end(ic) ic.show() Modified: trunk/BINDINGS/python/python-elementary/tests/test_radio.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_radio.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_radio.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -37,7 +37,7 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) rd = elementary.Radio(win) rd.state_value_set(1) rd.group_add(rdg) @@ -64,7 +64,7 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) rd = elementary.Radio(win) rd.state_value_set(4) rd.group_add(rdg) @@ -75,7 +75,7 @@ ic = elementary.Icon(win) ic.file_set('images/logo_small.png') - ic.scale_set(0, 0) + ic.resizable_set(0, 0) rd = elementary.Radio(win) rd.state_value_set(5) rd.group_add(rdg) Modified: trunk/BINDINGS/python/python-elementary/tests/test_tooltip.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_tooltip.py 2012-05-23 21:56:44 UTC (rev 71373) +++ trunk/BINDINGS/python/python-elementary/tests/test_tooltip.py 2012-05-23 21:58:12 UTC (rev 71374) @@ -8,7 +8,7 @@ def _tt_icon(obj, *args, **kargs): ic = elementary.Icon(obj) ic.file_set("images/logo_small.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.resize(64, 64) return ic @@ -18,7 +18,7 @@ def _tt_icon2(obj, *args, **kargs): ic = elementary.Icon(obj) ic.file_set("images/icon_00.png") - ic.scale_set(0, 0) + ic.resizable_set(0, 0) ic.resize(64, 64) return ic @@ -45,7 +45,7 @@ bx.show() tb = elementary.Toolbar(win) - tb.homogenous_set(False) + tb.homogeneous_set(False) tb.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) tb.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) bx.pack_end(tb) |