src/eric7/Preferences/ProgramsDialog.py

branch
eric7
changeset 11217
856628e8a303
parent 11216
a1471981ef18
child 11230
8a15b05eeee3
equal deleted inserted replaced
11216:a1471981ef18 11217:856628e8a303
152 QtUtilities.generateQtToolName("assistant"), 152 QtUtilities.generateQtToolName("assistant"),
153 ) 153 )
154 self.__createProgramEntry(self.tr("Qt Assistant"), exe, version=version) 154 self.__createProgramEntry(self.tr("Qt Assistant"), exe, version=version)
155 155
156 # 2. do the PyQt programs 156 # 2. do the PyQt programs
157 # 2.1 do the PyQt5 programs 157 # 2.1 do the PyQt6 programs
158 # 2.1a. Translation Extractor PyQt5 158 # 2.1a. Translation Extractor PyQt6
159 self.__createProgramEntry(
160 self.tr("Translation Extractor (Python, PyQt5)"),
161 QtUtilities.generatePyQtToolPath("pylupdate5"),
162 "-version",
163 "pylupdate",
164 -1,
165 )
166 # 2.1b. Forms Compiler PyQt5
167 self.__createProgramEntry(
168 self.tr("Forms Compiler (Python, PyQt5)"),
169 QtUtilities.generatePyQtToolPath("pyuic5", ["py3uic5"]),
170 "--version",
171 "Python User",
172 4,
173 )
174 # 2.1c. Resource Compiler PyQt5
175 self.__createProgramEntry(
176 self.tr("Resource Compiler (Python, PyQt5)"),
177 QtUtilities.generatePyQtToolPath("pyrcc5"),
178 "-version",
179 "",
180 -1,
181 versionRe="Resource Compiler|pyrcc5",
182 )
183
184 # 2.2 do the PyQt6 programs
185 # 2.2a. Translation Extractor PyQt6
186 self.__createProgramEntry( 159 self.__createProgramEntry(
187 self.tr("Translation Extractor (Python, PyQt6)"), 160 self.tr("Translation Extractor (Python, PyQt6)"),
188 QtUtilities.generatePyQtToolPath("pylupdate6"), 161 QtUtilities.generatePyQtToolPath("pylupdate6"),
189 "--version", 162 "--version",
190 versionPosition=0, 163 versionPosition=0,
191 ) 164 )
192 # 2.2b. Forms Compiler PyQt6 165 # 2.1b. Forms Compiler PyQt6
193 self.__createProgramEntry( 166 self.__createProgramEntry(
194 self.tr("Forms Compiler (Python, PyQt6)"), 167 self.tr("Forms Compiler (Python, PyQt6)"),
195 QtUtilities.generatePyQtToolPath("pyuic6"), 168 QtUtilities.generatePyQtToolPath("pyuic6"),
196 "--version", 169 "--version",
197 versionPosition=0, 170 versionPosition=0,

eric ide

mercurial