summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-18 12:21:04 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-18 19:02:35 +0200
commit83a457b6c564d6c404275e79638586d446ba1eaf (patch)
tree3a47f54a576ca262cd5912dadd8ec9790a980890
parent7c1cf756853a644a9ad80a07a1b79b5e7f9d44d6 (diff)
Examples updated
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--examples/evas_elem_test.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/examples/evas_elem_test.py b/examples/evas_elem_test.py
index b452d1b..ce0a7d6 100644
--- a/examples/evas_elem_test.py
+++ b/examples/evas_elem_test.py
@@ -2,16 +2,14 @@
2import sys 2import sys
3 3
4from base.eodefault import py_elm_init, elem_run 4from base.eodefault import py_elm_init, elem_run
5from eobase import EoBase 5#from eobase import EoBase
6#from evas_lib.py.evas_l import Evas, EvasObjectRectangle, EvasObjectLine 6#from evas_lib.py.evas_l import Evas, EvasObjectRectangle, EvasObjectLine
7from evas_elem_l.py.evas_elem_py import Evas, EvasObjectRectangle, EvasObjectLine, ElmWin, ElmBg 7from evas_elem_l.py.evas_elem_py import ElmWin, ElmBg, ElmBox, ElmButton
8
9 8
10print "Initializing Elementary..." 9print "Initializing Elementary..."
11print "Init res:", py_elm_init(sys.argv) 10print "Init res:", py_elm_init(sys.argv)
12print "" 11print ""
13 12
14
15w1 = ElmWin(None, "my win name", 0) 13w1 = ElmWin(None, "my win name", 0)
16w1.title_set("first_title") 14w1.title_set("first_title")
17t = w1.title_get() 15t = w1.title_get()
@@ -29,13 +27,19 @@ w1.resize_object_add(bg)
29bg.visibility_set(1) 27bg.visibility_set(1)
30 28
31 29
30box = ElmBox(w1)
31box.size_hint_weight_set(1.0, 1.0)
32w1.resize_object_add(box)
33box.visibility_set(1)
32 34
33 35but = ElmButton(w1)
36#but.text_set("Button")
37box.pack_end(but)
38but.visibility_set(1)
34 39
35elem_run() 40elem_run()
36"""
37
38 41
42"""
39ev = Evas(None) 43ev = Evas(None)
40rect = EvasObjectRectangle(ev) 44rect = EvasObjectRectangle(ev)
41line = EvasObjectLine(ev) 45line = EvasObjectLine(ev)