summaryrefslogtreecommitdiffstats
path: root/chalk/doc/scripts/dcop.py
blob: 55ac7983a0655cb36dbe20ed3c4855a8c72db204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pydcop import *

app = ""
for a in apps():
    if (a.startswith("chalk")):
        app = anyAppCalled(a)
        
doc = app.KoApplicationIface.getDocuments()[0]
img=doc.currentImage()
dev=img.activeDevice()
dev.setName("A new name")
print(dev.pixelSize())
print(dev.nChannels())
print(dev.readBytes(10, 10, 1, 1))