UI/CompareDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
84 84
85 @param files list of files to compare and their label 85 @param files list of files to compare and their label
86 (list of two tuples of two strings) 86 (list of two tuples of two strings)
87 @param parent parent widget (QWidget) 87 @param parent parent widget (QWidget)
88 """ 88 """
89 QWidget.__init__(self, parent) 89 super().__init__(parent)
90 self.setupUi(self) 90 self.setupUi(self)
91 91
92 self.file1Completer = E5FileCompleter(self.file1Edit) 92 self.file1Completer = E5FileCompleter(self.file1Edit)
93 self.file2Completer = E5FileCompleter(self.file2Edit) 93 self.file2Completer = E5FileCompleter(self.file2Edit)
94 94
166 166
167 @param filename name of a file to use as the first file (string) 167 @param filename name of a file to use as the first file (string)
168 """ 168 """
169 if filename: 169 if filename:
170 self.file1Edit.setText(filename) 170 self.file1Edit.setText(filename)
171 QWidget.show(self) 171 super().show()
172 172
173 def __appendText(self, pane, linenumber, line, format, interLine=False): 173 def __appendText(self, pane, linenumber, line, format, interLine=False):
174 """ 174 """
175 Private method to append text to the end of the contents pane. 175 Private method to append text to the end of the contents pane.
176 176
433 433
434 @param files list of files to compare and their label 434 @param files list of files to compare and their label
435 (list of two tuples of two strings) 435 (list of two tuples of two strings)
436 @param parent reference to the parent widget (QWidget) 436 @param parent reference to the parent widget (QWidget)
437 """ 437 """
438 QMainWindow.__init__(self, parent) 438 super().__init__(parent)
439 self.cw = CompareDialog(files, self) 439 self.cw = CompareDialog(files, self)
440 self.cw.installEventFilter(self) 440 self.cw.installEventFilter(self)
441 size = self.cw.size() 441 size = self.cw.size()
442 self.setCentralWidget(self.cw) 442 self.setCentralWidget(self.cw)
443 self.resize(size) 443 self.resize(size)

eric ide

mercurial