blob: cc703930f2ed2cfb368b5386280d6810dc533859 (
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)
|