From 86480e58eafc1fa3486e03155ed34e02b4595a24 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sun, 22 Jan 2023 02:02:13 +0100 Subject: Drop python2 support in scripts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- chalk/plugins/viewplugins/scripting/samples/python/invert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chalk/plugins/viewplugins/scripting/samples/python/invert.py') 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() -- cgit v1.2.3