Preferences/ProgramsDialog.py

branch
maintenance
changeset 5333
ccf10c6536c1
parent 5110
6520a41afb84
child 5389
9b1c800daff3
equal deleted inserted replaced
5315:a1baa47fee94 5333:ccf10c6536c1
135 135
136 # 2. do the PyQt programs 136 # 2. do the PyQt programs
137 # 2a. Translation Extractor PyQt4 137 # 2a. Translation Extractor PyQt4
138 self.__createProgramEntry( 138 self.__createProgramEntry(
139 self.tr("Translation Extractor (Python, PyQt4)"), 139 self.tr("Translation Extractor (Python, PyQt4)"),
140 Utilities.isWindowsPlatform() and "pylupdate4.exe" or "pylupdate4", 140 Utilities.isWindowsPlatform() and
141 Utilities.getWindowsExecutablePath("pylupdate4") or "pylupdate4",
141 '-version', 'pylupdate', -1) 142 '-version', 'pylupdate', -1)
142 # 2b. Forms Compiler PyQt4 143 # 2b. Forms Compiler PyQt4
143 self.__createProgramEntry( 144 self.__createProgramEntry(
144 self.tr("Forms Compiler (Python, PyQt4)"), 145 self.tr("Forms Compiler (Python, PyQt4)"),
145 Utilities.isWindowsPlatform() and "pyuic4.bat" or "pyuic4", 146 Utilities.isWindowsPlatform() and
147 Utilities.getWindowsExecutablePath("pyuic4") or "pyuic4",
146 '--version', 'Python User', 4) 148 '--version', 'Python User', 4)
147 # 2c. Resource Compiler PyQt4 149 # 2c. Resource Compiler PyQt4
148 self.__createProgramEntry( 150 self.__createProgramEntry(
149 self.tr("Resource Compiler (Python, PyQt4)"), 151 self.tr("Resource Compiler (Python, PyQt4)"),
150 Utilities.isWindowsPlatform() and "pyrcc4.exe" or "pyrcc4", 152 Utilities.isWindowsPlatform() and
153 Utilities.getWindowsExecutablePath("pyrcc4") or "pyrcc4",
151 '-version', 'Resource Compiler', -1) 154 '-version', 'Resource Compiler', -1)
152 # 2d. Translation Extractor PyQt5 155 # 2d. Translation Extractor PyQt5
153 self.__createProgramEntry( 156 self.__createProgramEntry(
154 self.tr("Translation Extractor (Python, PyQt5)"), 157 self.tr("Translation Extractor (Python, PyQt5)"),
155 Utilities.isWindowsPlatform() and "pylupdate5.exe" or "pylupdate5", 158 Utilities.isWindowsPlatform() and
159 Utilities.getWindowsExecutablePath("pylupdate5") or "pylupdate5",
156 '-version', 'pylupdate', -1) 160 '-version', 'pylupdate', -1)
157 # 2e. Forms Compiler PyQt5 161 # 2e. Forms Compiler PyQt5
158 self.__createProgramEntry( 162 self.__createProgramEntry(
159 self.tr("Forms Compiler (Python, PyQt5)"), 163 self.tr("Forms Compiler (Python, PyQt5)"),
160 Utilities.isWindowsPlatform() and "pyuic5.bat" or "pyuic5", 164 Utilities.isWindowsPlatform() and
165 Utilities.getWindowsExecutablePath("pyuic5") or "pyuic5",
161 '--version', 'Python User', 4) 166 '--version', 'Python User', 4)
162 # 2f. Resource Compiler PyQt5 167 # 2f. Resource Compiler PyQt5
163 self.__createProgramEntry( 168 self.__createProgramEntry(
164 self.tr("Resource Compiler (Python, PyQt5)"), 169 self.tr("Resource Compiler (Python, PyQt5)"),
165 Utilities.isWindowsPlatform() and "pyrcc5.exe" or "pyrcc5", 170 Utilities.isWindowsPlatform() and
171 Utilities.getWindowsExecutablePath("pyrcc5") or "pyrcc5",
166 '-version', '', -1, versionRe='Resource Compiler|pyrcc5') 172 '-version', '', -1, versionRe='Resource Compiler|pyrcc5')
167 173
168 # 3. do the PySide programs 174 # 3. do the PySide programs
169 # 3a. Translation Extractor PySide 175 # 3a. Translation Extractor PySide
170 self.__createProgramEntry( 176 self.__createProgramEntry(

eric ide

mercurial