summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-15 18:07:58 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-15 18:08:44 +0200
commit83eafe8424d1b7f66f7e3572b588ddce0a10f2fc (patch)
tree7ac951490e20b958dd15cfdcb55fa3c44fc0b93e
parente3f3962f8484a0f3f76b76e40d064f1020b16ad9 (diff)
example update
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--examples/evas_elem_test.py36
1 files changed, 33 insertions, 3 deletions
diff --git a/examples/evas_elem_test.py b/examples/evas_elem_test.py
index 38d3df4..b452d1b 100644
--- a/examples/evas_elem_test.py
+++ b/examples/evas_elem_test.py
@@ -1,10 +1,40 @@
1# -*- coding: UTF-8 -*- 1# -*- coding: UTF-8 -*-
2import sys 2import sys
3 3
4#from base.eodefault import py_elm_init, elem_runi 4from base.eodefault import py_elm_init, elem_run
5from eobase import EoBase 5from 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 7from evas_elem_l.py.evas_elem_py import Evas, EvasObjectRectangle, EvasObjectLine, ElmWin, ElmBg
8
9
10print "Initializing Elementary..."
11print "Init res:", py_elm_init(sys.argv)
12print ""
13
14
15w1 = ElmWin(None, "my win name", 0)
16w1.title_set("first_title")
17t = w1.title_get()
18print "title:", t
19w1.size_set(370, 350)
20xx,yy = w1.size_get()
21print "size : " , xx, yy
22w1.visibility_set(1)
23v = w1.visibility_get()
24print "v=", v
25
26bg = ElmBg(w1)
27bg.size_hint_weight_set(1.0, 1.0)
28w1.resize_object_add(bg)
29bg.visibility_set(1)
30
31
32
33
34
35elem_run()
36"""
37
8 38
9ev = Evas(None) 39ev = Evas(None)
10rect = EvasObjectRectangle(ev) 40rect = EvasObjectRectangle(ev)
@@ -19,5 +49,5 @@ line.xy_set(0, 0, 10, 20)
19r, g, b, a = line.xy_get() 49r, g, b, a = line.xy_get()
20print "%d %d %d %d"%(r, g, b, a) 50print "%d %d %d %d"%(r, g, b, a)
21print "==================" 51print "=================="
22 52"""
23 53