diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-11 17:41:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-13 12:09:49 +0900 |
commit | da9cd0c056c8275033fca84a1c8d49a8edb0c8ee (patch) | |
tree | 2521f74c0b2868d82518e13053fb01cc179e9a23 /superkaramba/examples/setIncomingData/2.py | |
parent | 5dab6232ef3b3715630cf88eb40c4c6021e65f07 (diff) | |
download | tdeutils-da9cd0c056c8275033fca84a1c8d49a8edb0c8ee.tar.gz tdeutils-da9cd0c056c8275033fca84a1c8d49a8edb0c8ee.zip |
superkaramba: convert examples to python3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'superkaramba/examples/setIncomingData/2.py')
-rw-r--r-- | superkaramba/examples/setIncomingData/2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/superkaramba/examples/setIncomingData/2.py b/superkaramba/examples/setIncomingData/2.py index a411b60..1656316 100644 --- a/superkaramba/examples/setIncomingData/2.py +++ b/superkaramba/examples/setIncomingData/2.py @@ -14,7 +14,7 @@ def initWidget(widget): # this resets the text to "" so we know we've never # received anything yet from the other theme name = karamba.getPrettyThemeName(widget) - print "2.py name: ", name + print("2.py name: ", name) karamba.setIncomingData(widget, name, "") karamba.redrawWidget(widget) @@ -47,7 +47,7 @@ def widgetUpdated(widget): # get the "message"... disp = karamba.getIncomingData(widget) - if disp == "": + if disp == "" or disp == b'': return # decode it... @@ -74,5 +74,5 @@ def widgetUpdated(widget): pass # This will be printed when the widget loads. -print "Loaded my python 2.py extension!" +print("Loaded my python 2.py extension!") |