diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-22 02:02:13 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-22 02:02:13 +0100 |
commit | 86480e58eafc1fa3486e03155ed34e02b4595a24 (patch) | |
tree | 0e8f64c4003ea558e946b7a3347688904b451635 /chalk/plugins/viewplugins/scripting/samples/python/invert.py | |
parent | 135d005014a1e85295af4e379f026a361537ae5f (diff) | |
download | koffice-86480e58eafc1fa3486e03155ed34e02b4595a24.tar.gz koffice-86480e58eafc1fa3486e03155ed34e02b4595a24.zip |
Drop python2 support in scripts.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'chalk/plugins/viewplugins/scripting/samples/python/invert.py')
-rw-r--r-- | chalk/plugins/viewplugins/scripting/samples/python/invert.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chalk/plugins/viewplugins/scripting/samples/python/invert.py b/chalk/plugins/viewplugins/scripting/samples/python/invert.py index 7a6427607..91df6d9d0 100644 --- a/chalk/plugins/viewplugins/scripting/samples/python/invert.py +++ b/chalk/plugins/viewplugins/scripting/samples/python/invert.py @@ -33,7 +33,7 @@ class Inverter: script.setProgressTotalSteps(width * height) layer.beginPainting("invert") it = layer.createRectIterator( 0, 0, width, height ) - print "kikoo\n" + print("kikoo\n") finesh = it.isDone() while (not finesh) : p = it.getRGBA() @@ -42,7 +42,7 @@ class Inverter: p[2] = 255 - p[2] it.setRGBA(p) script.incProgress() - finesh = it.next() + finesh = next(it) layer.endPainting() Inverter() |