eric6/Project/ProjectFormsBrowser.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 7050
b66cac9a6560
child 7201
6b42677d7043
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
6 """ 6 """
7 Module implementing a class used to display the forms part of the project. 7 Module implementing a class used to display the forms part of the project.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 try:
12 str = unicode
13 except NameError:
14 pass
15 11
16 import os 12 import os
17 import sys 13 import sys
18 import shutil 14 import shutil
19 15
672 668
673 if self.project.getProjectLanguage() in \ 669 if self.project.getProjectLanguage() in \
674 ["Python", "Python2", "Python3"]: 670 ["Python", "Python2", "Python3"]:
675 if self.project.getProjectType() in ["Qt4", ]: 671 if self.project.getProjectType() in ["Qt4", ]:
676 self.__uicompiler = Utilities.generatePyQtToolPath( 672 self.__uicompiler = Utilities.generatePyQtToolPath(
677 'pyuic4', ["py3uic4", "py2uic4"]) 673 'pyuic4', ["py3uic4"])
678 elif self.project.getProjectType() in ["PyQt5"]: 674 elif self.project.getProjectType() in ["PyQt5"]:
679 self.__uicompiler = Utilities.generatePyQtToolPath( 675 self.__uicompiler = Utilities.generatePyQtToolPath(
680 'pyuic5', ["py3uic5", "py2uic5"]) 676 'pyuic5', ["py3uic5"])
681 elif self.project.getProjectType() in ["E6Plugin"]: 677 elif self.project.getProjectType() in ["E6Plugin"]:
682 if PYQT_VERSION < 0x050000: 678 if PYQT_VERSION < 0x050000:
683 self.__uicompiler = Utilities.generatePyQtToolPath( 679 self.__uicompiler = Utilities.generatePyQtToolPath(
684 'pyuic4', ["py3uic4", "py2uic4"]) 680 'pyuic4', ["py3uic4"])
685 else: 681 else:
686 self.__uicompiler = Utilities.generatePyQtToolPath( 682 self.__uicompiler = Utilities.generatePyQtToolPath(
687 'pyuic5', ["py3uic5", "py2uic5"]) 683 'pyuic5', ["py3uic5"])
688 elif self.project.getProjectType() == "PySide": 684 elif self.project.getProjectType() == "PySide":
689 self.__uicompiler = \ 685 self.__uicompiler = \
690 Utilities.generatePySideToolPath('pyside-uic', "1") 686 Utilities.generatePySideToolPath('pyside-uic', "1")
691 elif self.project.getProjectType() == "PySide2": 687 elif self.project.getProjectType() == "PySide2":
692 self.__uicompiler = \ 688 self.__uicompiler = \

eric ide

mercurial