You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/dcoppython/test/test2.py

29 lines
446 B

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")