1130:3e9f0330f833 | 1131:7781e396c903 |
---|---|
197 """ | 197 """ |
198 def __init__(self, parent=None): | 198 def __init__(self, parent=None): |
199 """ | 199 """ |
200 Constructor | 200 Constructor |
201 """ | 201 """ |
202 QWidget.__init__(self, parent) | 202 super().__init__(parent) |
203 self.setupUi(self) | 203 self.setupUi(self) |
204 | 204 |
205 self.file1Completer = E5FileCompleter(self.file1Edit) | 205 self.file1Completer = E5FileCompleter(self.file1Edit) |
206 self.file2Completer = E5FileCompleter(self.file2Edit) | 206 self.file2Completer = E5FileCompleter(self.file2Edit) |
207 | 207 |
246 | 246 |
247 @param filename name of a file to use as the first file (string) | 247 @param filename name of a file to use as the first file (string) |
248 """ | 248 """ |
249 if filename: | 249 if filename: |
250 self.file1Edit.setText(filename) | 250 self.file1Edit.setText(filename) |
251 QWidget.show(self) | 251 super().show() |
252 | 252 |
253 def on_buttonBox_clicked(self, button): | 253 def on_buttonBox_clicked(self, button): |
254 """ | 254 """ |
255 Private slot called by a button of the button box clicked. | 255 Private slot called by a button of the button box clicked. |
256 | 256 |
495 """ | 495 """ |
496 Constructor | 496 Constructor |
497 | 497 |
498 @param parent reference to the parent widget (QWidget) | 498 @param parent reference to the parent widget (QWidget) |
499 """ | 499 """ |
500 QMainWindow.__init__(self, parent) | 500 super().__init__(parent) |
501 self.cw = DiffDialog(self) | 501 self.cw = DiffDialog(self) |
502 self.cw.installEventFilter(self) | 502 self.cw.installEventFilter(self) |
503 size = self.cw.size() | 503 size = self.cw.size() |
504 self.setCentralWidget(self.cw) | 504 self.setCentralWidget(self.cw) |
505 self.resize(size) | 505 self.resize(size) |