diff options
author | ormorph <roma251078@mail.ru> | 2024-04-20 21:46:29 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-21 17:40:56 +0900 |
commit | 511bdc21c8f31fc009c32cda6b39de3a76e7e51b (patch) | |
tree | 4a641f201c4dd2d7cb527c8d0481dc31a5e16460 /src/tqtuicompiler.py | |
parent | b1511452b99d6a4eca32da296f1ff4ce3bf47117 (diff) | |
download | pytdeextensions-r14.1.2.tar.gz pytdeextensions-r14.1.2.zip |
Fixing tdedesigner and tqtuicompiler modules not workingr14.1.2
Python3 compatibility fix
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 69bf5c34cbcf8e94d876f448ee4d8e292cf0d7e3)
Diffstat (limited to 'src/tqtuicompiler.py')
-rw-r--r-- | src/tqtuicompiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tqtuicompiler.py b/src/tqtuicompiler.py index 0e84838..bf7ff11 100644 --- a/src/tqtuicompiler.py +++ b/src/tqtuicompiler.py @@ -59,11 +59,11 @@ def CompileUI(ui_file_name, py_file_name=None, kde=False): input = open(tmp_file_name, 'r') output = open(py_file_name, 'w') for line in input.readlines(): - if kde and string.strip(line) == 'from PyTQt.tqt import *': + if kde and str.strip(line) == 'from PyTQt.tqt import *': output.write(line) output.write('from tdecore import *\nfrom tdeui import *\n\n') - elif kde and string.find(line, " = KDatePicker(") != -1: - o = string.find(line, ",") + elif kde and str.find(line, " = KDatePicker(") != -1: + o = str.find(line, ",") output.write(line[:o] + ",TQDate.currentDate()" + line[o:]) else: output.write (line) |