summaryrefslogtreecommitdiffstats
path: root/dcoppython/test/test2.py
diff options
context:
space:
mode:
Diffstat (limited to 'dcoppython/test/test2.py')
-rw-r--r--dcoppython/test/test2.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/dcoppython/test/test2.py b/dcoppython/test/test2.py
new file mode 100644
index 00000000..1a56f917
--- /dev/null
+++ b/dcoppython/test/test2.py
@@ -0,0 +1,28 @@
+
+import pcop
+import pydcop
+
+app = pydcop.anyAppCalled( "kspread" );
+
+res = app.default.getDocuments()
+
+print res
+print res[0].appname
+print res[0].name
+
+m = res[0].map()
+
+print m.tableNames()
+
+x = m.table('Sheet2')
+
+if x:
+ print x
+ print "===================="
+ print x._name
+ print "===================="
+ print x._name()
+ print "===================="
+else: print "Could not find sheet called Sheet2"
+
+print "done"