Preferences/ProgramsDialog.py

changeset 5696
68af0e9c57ad
parent 5624
cdd346d8858b
child 5878
74d02cd37185
equal deleted inserted replaced
5693:04dd50448b10 5696:68af0e9c57ad
132 Utilities.generateQtToolName("assistant")) 132 Utilities.generateQtToolName("assistant"))
133 self.__createProgramEntry( 133 self.__createProgramEntry(
134 self.tr("Qt Assistant"), exe, version=version) 134 self.tr("Qt Assistant"), exe, version=version)
135 135
136 # 2. do the PyQt programs 136 # 2. do the PyQt programs
137 # 2a. Translation Extractor PyQt4 137 # 2.1 do the PyQt4 programs
138 # 2.1a. Translation Extractor PyQt4
138 self.__createProgramEntry( 139 self.__createProgramEntry(
139 self.tr("Translation Extractor (Python, PyQt4)"), 140 self.tr("Translation Extractor (Python, PyQt4)"),
140 Utilities.isWindowsPlatform() and 141 Utilities.generatePyQtToolPath("pylupdate4"),
141 Utilities.getWindowsExecutablePath("pylupdate4") or "pylupdate4",
142 '-version', 'pylupdate', -1) 142 '-version', 'pylupdate', -1)
143 # 2b. Forms Compiler PyQt4 143 # 2.1b. Forms Compiler PyQt4
144 self.__createProgramEntry( 144 self.__createProgramEntry(
145 self.tr("Forms Compiler (Python, PyQt4)"), 145 self.tr("Forms Compiler (Python, PyQt4)"),
146 Utilities.isWindowsPlatform() and 146 Utilities.generatePyQtToolPath("pyuic4"),
147 Utilities.getWindowsExecutablePath("pyuic4") or "pyuic4",
148 '--version', 'Python User', 4) 147 '--version', 'Python User', 4)
149 # 2c. Resource Compiler PyQt4 148 # 2.1c. Resource Compiler PyQt4
150 self.__createProgramEntry( 149 self.__createProgramEntry(
151 self.tr("Resource Compiler (Python, PyQt4)"), 150 self.tr("Resource Compiler (Python, PyQt4)"),
152 Utilities.isWindowsPlatform() and 151 Utilities.generatePyQtToolPath("pyrcc4"),
153 Utilities.getWindowsExecutablePath("pyrcc4") or "pyrcc4",
154 '-version', 'Resource Compiler', -1) 152 '-version', 'Resource Compiler', -1)
155 # 2d. Translation Extractor PyQt5 153
154 # 2.2 do the PyQt5 programs
155 # 2.2a. Translation Extractor PyQt5
156 self.__createProgramEntry( 156 self.__createProgramEntry(
157 self.tr("Translation Extractor (Python, PyQt5)"), 157 self.tr("Translation Extractor (Python, PyQt5)"),
158 Utilities.isWindowsPlatform() and 158 Utilities.generatePyQtToolPath("pylupdate5"),
159 Utilities.getWindowsExecutablePath("pylupdate5") or "pylupdate5",
160 '-version', 'pylupdate', -1) 159 '-version', 'pylupdate', -1)
161 # 2e. Forms Compiler PyQt5 160 # 2.2b. Forms Compiler PyQt5
162 self.__createProgramEntry( 161 self.__createProgramEntry(
163 self.tr("Forms Compiler (Python, PyQt5)"), 162 self.tr("Forms Compiler (Python, PyQt5)"),
164 Utilities.isWindowsPlatform() and 163 Utilities.generatePyQtToolPath("pyuic5"),
165 Utilities.getWindowsExecutablePath("pyuic5") or "pyuic5",
166 '--version', 'Python User', 4) 164 '--version', 'Python User', 4)
167 # 2f. Resource Compiler PyQt5 165 # 2.2c. Resource Compiler PyQt5
168 self.__createProgramEntry( 166 self.__createProgramEntry(
169 self.tr("Resource Compiler (Python, PyQt5)"), 167 self.tr("Resource Compiler (Python, PyQt5)"),
170 Utilities.isWindowsPlatform() and 168 Utilities.generatePyQtToolPath("pyrcc5"),
171 Utilities.getWindowsExecutablePath("pyrcc5") or "pyrcc5",
172 '-version', '', -1, versionRe='Resource Compiler|pyrcc5') 169 '-version', '', -1, versionRe='Resource Compiler|pyrcc5')
173 170
174 # 3. do the PySide programs 171 # 3. do the PySide programs
175 # 3a. Translation Extractor PySide 172 # 3a. Translation Extractor PySide
176 self.__createProgramEntry( 173 self.__createProgramEntry(

eric ide

mercurial