diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-26 00:41:16 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-26 00:41:16 +0000 |
commit | 698569f8428ca088f764d704034a1330517b98c0 (patch) | |
tree | bf45be6946ebbbee9cce5a5bcf838f4c952d87e6 /chalk/doc/scripts/dcop.py | |
parent | 2785103a6bd4de55bd26d79e34d0fdd4b329a73a (diff) | |
download | koffice-698569f8428ca088f764d704034a1330517b98c0.tar.gz koffice-698569f8428ca088f764d704034a1330517b98c0.zip |
Finish rebranding of Krita as Chalk
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238363 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'chalk/doc/scripts/dcop.py')
-rw-r--r-- | chalk/doc/scripts/dcop.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chalk/doc/scripts/dcop.py b/chalk/doc/scripts/dcop.py new file mode 100644 index 00000000..cc703930 --- /dev/null +++ b/chalk/doc/scripts/dcop.py @@ -0,0 +1,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) |