265 locker.unlock() |
265 locker.unlock() |
266 os.chdir(cwd) |
266 os.chdir(cwd) |
267 self.__finish() |
267 self.__finish() |
268 |
268 |
269 if self.paras == 0: |
269 if self.paras == 0: |
270 self.contents.insertPlainText( |
270 self.contents.setCurrentCharFormat(self.cNormalFormat) |
|
271 self.contents.setPlainText( |
271 self.tr('There is no difference.')) |
272 self.tr('There is no difference.')) |
272 return |
273 |
273 |
274 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(self.paras > 0) |
274 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(True) |
|
275 |
275 |
276 def __appendText(self, line): |
276 def __appendText(self, line): |
277 """ |
277 """ |
278 Private method to append text to the end of the contents pane. |
278 Private method to append text to the end of the contents pane. |
279 |
279 |