184 |
184 |
185 @param filename name of a file to use as the first file (string) |
185 @param filename name of a file to use as the first file (string) |
186 """ |
186 """ |
187 if filename: |
187 if filename: |
188 self.file1Picker.setText(filename) |
188 self.file1Picker.setText(filename) |
189 super(CompareDialog, self).show() |
189 super().show() |
190 |
190 |
191 def __appendText(self, pane, linenumber, line, charFormat, |
191 def __appendText(self, pane, linenumber, line, charFormat, |
192 interLine=False): |
192 interLine=False): |
193 """ |
193 """ |
194 Private method to append text to the end of the contents pane. |
194 Private method to append text to the end of the contents pane. |
468 |
468 |
469 @param files list of files to compare and their label |
469 @param files list of files to compare and their label |
470 (list of two tuples of two strings) |
470 (list of two tuples of two strings) |
471 @param parent reference to the parent widget (QWidget) |
471 @param parent reference to the parent widget (QWidget) |
472 """ |
472 """ |
473 super(CompareWindow, self).__init__(parent) |
473 super().__init__(parent) |
474 |
474 |
475 self.setStyle(Preferences.getUI("Style"), |
475 self.setStyle(Preferences.getUI("Style"), |
476 Preferences.getUI("StyleSheet")) |
476 Preferences.getUI("StyleSheet")) |
477 |
477 |
478 self.cw = CompareDialog(files, self) |
478 self.cw = CompareDialog(files, self) |