From da9cd0c056c8275033fca84a1c8d49a8edb0c8ee Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 11 Nov 2022 17:41:30 +0900 Subject: superkaramba: convert examples to python3. Signed-off-by: Michele Calgaro --- superkaramba/examples/input_example/input_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'superkaramba/examples/input_example/input_example.py') diff --git a/superkaramba/examples/input_example/input_example.py b/superkaramba/examples/input_example/input_example.py index c0145c9..62a369f 100644 --- a/superkaramba/examples/input_example/input_example.py +++ b/superkaramba/examples/input_example/input_example.py @@ -153,7 +153,7 @@ def wallpaperChanged(widget, desktop): def keyPressed(widget, meter, char): global input, output if meter == input: - print "keyPressed: key= '", char, "'" + print("keyPressed: key= '", char, "'") text = karamba.getInputBoxValue(widget, input) karamba.changeText(widget, output, "Searched: " + text) try: @@ -161,9 +161,9 @@ def keyPressed(widget, meter, char): url = "konqueror leo:" + text os.system(url + "&") except TypeError: - print "There was a type error" + print("There was a type error") karamba.redrawWidget(widget) # This will be printed when the widget loads. -print "Loaded my python extension!" +print("Loaded my python extension!") -- cgit v1.2.3