summaryrefslogtreecommitdiffstats
path: root/superkaramba/examples/disableRightClickMenu
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-11-11 17:41:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-11-13 12:09:49 +0900
commitda9cd0c056c8275033fca84a1c8d49a8edb0c8ee (patch)
tree2521f74c0b2868d82518e13053fb01cc179e9a23 /superkaramba/examples/disableRightClickMenu
parent5dab6232ef3b3715630cf88eb40c4c6021e65f07 (diff)
downloadtdeutils-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/disableRightClickMenu')
-rw-r--r--superkaramba/examples/disableRightClickMenu/disable_menu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/superkaramba/examples/disableRightClickMenu/disable_menu.py b/superkaramba/examples/disableRightClickMenu/disable_menu.py
index 6c524dd..e903d26 100644
--- a/superkaramba/examples/disableRightClickMenu/disable_menu.py
+++ b/superkaramba/examples/disableRightClickMenu/disable_menu.py
@@ -45,7 +45,7 @@ def widgetClicked(widget, x, y, button):
if text2:
karamba.deleteText(widget,text2)
text2 = karamba.createText(widget,5,70,400,20,newText)
- print newText
+ print(newText)
elif not clicked and button == 1:
clicked = True
karamba.setWantRightButton(widget, True)
@@ -53,9 +53,9 @@ def widgetClicked(widget, x, y, button):
if text2:
karamba.deleteText(widget,text2)
text2 = karamba.createText(widget,5,70,400,20,newText)
- print newText
+ print(newText)
if button == 3:
- print "Clicking the right mouse button is recognized now."
+ print("Clicking the right mouse button is recognized now.")
karamba.redrawWidget(widget)
#This gets called everytime our widget is clicked.
@@ -173,4 +173,4 @@ def keyPressed(widget, meter, char):
pass
# This will be printed when the widget loads.
-print "Loaded my python extension!"
+print("Loaded my python extension!")