ProjectPyramid/DistributionTypeSelectionDialog.py

changeset 74
11587ae1122f
parent 71
8a78fab32c18
child 80
b39b70d147a9
diff -r 3b3e73b730f0 -r 11587ae1122f ProjectPyramid/DistributionTypeSelectionDialog.py
--- a/ProjectPyramid/DistributionTypeSelectionDialog.py	Sat Apr 26 17:12:15 2014 +0200
+++ b/ProjectPyramid/DistributionTypeSelectionDialog.py	Fri Jul 11 19:01:33 2014 +0200
@@ -13,8 +13,8 @@
 except NameError:
     pass
 
-from PyQt4.QtCore import Qt, QProcess
-from PyQt4.QtGui import QDialog, QListWidgetItem
+from PyQt5.QtCore import Qt, QProcess
+from PyQt5.QtWidgets import QDialog, QListWidgetItem
 
 from E5Gui import E5MessageBox
 
@@ -60,11 +60,11 @@
                         'replace')
             else:
                 if not finished:
-                    errMsg = self.trUtf8(
+                    errMsg = self.tr(
                         "The python setup.py command did not finish within"
                         " 30s.")
         else:
-            errMsg = self.trUtf8("Could not start the pcreate executable.")
+            errMsg = self.tr("Could not start the pcreate executable.")
         if not errMsg:
             for line in output.splitlines():
                 line = line.strip()
@@ -79,7 +79,7 @@
         else:
             E5MessageBox.critical(
                 None,
-                self.trUtf8('Process Generation Error'),
+                self.tr('Process Generation Error'),
                 errMsg)
     
     def getFormats(self):

eric ide

mercurial