aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple_test.py
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-12-17 17:00:29 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-12-17 17:00:29 +0200
commit27f48694bf3e54d822e3283d608f70462ec3beae (patch)
tree39f8eb1535ae148f0eff2014f5cd5f7888aabd4a /examples/simple_test.py
parentRelease 0.0.1 (diff)
parentJS gen: fixes to avoid name clash with 'val'-named var (diff)
downloadeo_bindings-master.tar.gz
Release 0.0.2HEADmaster
'eoparser' package, with tools 'eorepo' is provided with base classes
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)
+