Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3023
34ce20603bf7
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
151 self.process.start('hg', args) 151 self.process.start('hg', args)
152 procStarted = self.process.waitForStarted(5000) 152 procStarted = self.process.waitForStarted(5000)
153 if not procStarted: 153 if not procStarted:
154 self.inputGroup.setEnabled(False) 154 self.inputGroup.setEnabled(False)
155 self.inputGroup.hide() 155 self.inputGroup.hide()
156 E5MessageBox.critical(self, 156 E5MessageBox.critical(
157 self,
157 self.trUtf8('Process Generation Error'), 158 self.trUtf8('Process Generation Error'),
158 self.trUtf8( 159 self.trUtf8(
159 'The process {0} could not be started. ' 160 'The process {0} could not be started. '
160 'Ensure, that it is in the search path.' 161 'Ensure, that it is in the search path.'
161 ).format('hg')) 162 ).format('hg'))
192 self.process.start('hg', args) 193 self.process.start('hg', args)
193 procStarted = self.process.waitForStarted(5000) 194 procStarted = self.process.waitForStarted(5000)
194 if not procStarted: 195 if not procStarted:
195 self.inputGroup.setEnabled(False) 196 self.inputGroup.setEnabled(False)
196 self.inputGroup.hide() 197 self.inputGroup.hide()
197 E5MessageBox.critical(self, 198 E5MessageBox.critical(
199 self,
198 self.trUtf8('Process Generation Error'), 200 self.trUtf8('Process Generation Error'),
199 self.trUtf8( 201 self.trUtf8(
200 'The process {0} could not be started. ' 202 'The process {0} could not be started. '
201 'Ensure, that it is in the search path.' 203 'Ensure, that it is in the search path.'
202 ).format('hg')) 204 ).format('hg'))
264 266
265 def __resort(self): 267 def __resort(self):
266 """ 268 """
267 Private method to resort the tree. 269 Private method to resort the tree.
268 """ 270 """
269 self.patchesList.sortItems(self.patchesList.sortColumn(), 271 self.patchesList.sortItems(
272 self.patchesList.sortColumn(),
270 self.patchesList.header().sortIndicatorOrder()) 273 self.patchesList.header().sortIndicatorOrder())
271 274
272 def __resizeColumns(self): 275 def __resizeColumns(self):
273 """ 276 """
274 Private method to resize the list columns. 277 Private method to resize the list columns.

eric ide

mercurial