aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple_test.py
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-14 15:59:30 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-15 11:19:52 +0200
commit8c845cbc9ac4954cebab722426de3d6531345c0a (patch)
tree1d9498f21b3184fda27e3b8db0d6a61f38b2003d /examples/simple_test.py
parentBug fixes in cparser and xml parser (diff)
downloadeo_bindings-8c845cbc9ac4954cebab722426de3d6531345c0a.tar.gz
Updating py examples
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Diffstat (limited to 'examples/simple_test.py')
-rw-r--r--examples/simple_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/simple_test.py b/examples/simple_test.py
new file mode 100644
index 0000000..7d1e98a
--- /dev/null
+++ b/examples/simple_test.py
@@ -0,0 +1,14 @@
+# -*- coding: UTF-8 -*-
+
+from simple.py.simple_py import Simple, Mixin, Interface
+
+so = Simple(None)
+
+so.a_set(4)
+
+a = so.a_get()
+a2 = so.a_square_get()
+a3 = so.a_power_3_get()
+
+print "a = %d; a^2 = %d; a^3 = %d " %(a, a2, a3)
+