summaryrefslogtreecommitdiffstats
path: root/languages/python/app_templates/pyqt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2023-01-16 21:04:18 +0100
committerSlávek Banko <[email protected]>2023-01-16 21:04:18 +0100
commitb81d9ec9ffdb93cf988e4f74c3f4680340ff184f (patch)
treeee4a606286019b692bb5606abece598e1d1df499 /languages/python/app_templates/pyqt
parent2e6682f7d5d9247244429a117954488816f8450c (diff)
downloadtdevelop-b81d9ec9ffdb93cf988e4f74c3f4680340ff184f.tar.gz
tdevelop-b81d9ec9ffdb93cf988e4f74c3f4680340ff184f.zip
Drop python2 support.r14.1.0
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'languages/python/app_templates/pyqt')
-rw-r--r--languages/python/app_templates/pyqt/app.py2
-rw-r--r--languages/python/app_templates/pyqt/pyqt-am-preproc.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/languages/python/app_templates/pyqt/app.py b/languages/python/app_templates/pyqt/app.py
index ede8dc54..d2207de3 100644
--- a/languages/python/app_templates/pyqt/app.py
+++ b/languages/python/app_templates/pyqt/app.py
@@ -133,7 +133,7 @@ class %{APPNAME}(QMainWindow):
def slotOpenFile(self):
fileName = str(QFileDialog.getOpenFileName("", "", self))
- print fileName
+ print(fileName)
if not fileName=="":
self.load(fileName)
else:
diff --git a/languages/python/app_templates/pyqt/pyqt-am-preproc.py b/languages/python/app_templates/pyqt/pyqt-am-preproc.py
index ff7b5a16..b58f3328 100644
--- a/languages/python/app_templates/pyqt/pyqt-am-preproc.py
+++ b/languages/python/app_templates/pyqt/pyqt-am-preproc.py
@@ -7,7 +7,7 @@
# Test real_lines properly
# Process Makefile.am's in sub-directories
-from __future__ import generators
+
import sys
import re
@@ -49,13 +49,13 @@ for l in real_lines(mf):
variables[lhs]=rhs
# look for app sources
-for (var,data) in variables.items():
+for (var,data) in list(variables.items()):
spl = var.split("_",1)
spl.append("")
(prefix,primary) = (spl[0], spl[1])
if primary=="PROGRAMS":
target=data
- if variables.has_key(target + "_SOURCES"):
+ if target + "_SOURCES" in variables:
sources = variables[target+"_SOURCES"].split()
# change .ui into .py