summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins/scripting/samples/python/invert.py
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/viewplugins/scripting/samples/python/invert.py')
-rw-r--r--chalk/plugins/viewplugins/scripting/samples/python/invert.py4
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()