summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-20 16:19:47 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-20 16:21:50 +0200
commit26ddb3073c77bdd564a411e1559a07b256cb3874 (patch)
tree792c6d17a817d80b15c0dd562fa0b7e8e52a30df
parentda48f96172c2678840abc68c65614f0292a248a3 (diff)
Py Examples updated
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--examples/evas_elem_test.py7
-rw-r--r--examples/evas_test.py11
2 files changed, 14 insertions, 4 deletions
diff --git a/examples/evas_elem_test.py b/examples/evas_elem_test.py
index ce0a7d6..5c240fd 100644
--- a/examples/evas_elem_test.py
+++ b/examples/evas_elem_test.py
@@ -37,6 +37,13 @@ but = ElmButton(w1)
37box.pack_end(but) 37box.pack_end(but)
38but.visibility_set(1) 38but.visibility_set(1)
39 39
40d = w1.screen_dpi_get()
41print d
42d = w1.role_get()
43print d
44d = w1.fullscreen_set(1)
45
46
40elem_run() 47elem_run()
41 48
42""" 49"""
diff --git a/examples/evas_test.py b/examples/evas_test.py
index 632296f..2a15b9b 100644
--- a/examples/evas_test.py
+++ b/examples/evas_test.py
@@ -41,19 +41,20 @@ def properties_cb(obj):
41 41
42######################## setting data ########################## 42######################## setting data ##########################
43def data_cb(obj): 43def data_cb(obj):
44 print "setting data" 44 print "setting data - int : 5"
45 i = 5 45 i = 5
46 obj.data_set("int", i) 46 obj.data_set("int", i)
47 i = 999999 47 i = 999999
48 48
49 f = obj.data_get("int") 49 f = obj.data_get("int")
50 print "getting data"
50 print f, type(f) 51 print f, type(f)
51 f = obj.data_del("int") 52 f = obj.data_del("int")
52 53
53#ebb.data_set("list", ["a", "bb", "cc", "asdfasfd", "1234124", "asdf", "123", "12"]) 54#ebb.data_set("list", ["a", "bb", "cc", "asdfasfd", "1234124", "asdf", "123", "12"])
54#ebb.data_set("list", ["xx", "yy", "zz"]) 55 #ebb.data_set("list", ["xx", "yy", "zz"])
55#f = ebb.data_get("list") 56 #f = ebb.data_get("list")
56#print f, type(f) 57 #print f, type(f)
57 58
58#l = ["a", "b", "c", "asd", "123"] 59#l = ["a", "b", "c", "asd", "123"]
59#ebb.data_set("list2", l) 60#ebb.data_set("list2", l)
@@ -62,12 +63,14 @@ def data_cb(obj):
62# f = obj.data_get("list2") 63# f = obj.data_get("list2")
63# print f, type(f) 64# print f, type(f)
64 65
66 print "setting data - char : string data"
65 obj.data_set("char", "string data") 67 obj.data_set("char", "string data")
66 f = obj.data_get("char") 68 f = obj.data_get("char")
67 print f, type(f) 69 print f, type(f)
68 70
69 obj.data_set("object",pb) 71 obj.data_set("object",pb)
70 f = obj.data_get("object") 72 f = obj.data_get("object")
73 print "getting data"
71 print f, type(f) 74 print f, type(f)
72#f.text_set("neeew name") 75#f.text_set("neeew name")
73#f = ebb.data_del("object") 76#f = ebb.data_del("object")