2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog to show the output of the tabnanny command process. | 7 Module implementing a dialog to show the output of the tabnanny command process. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
11 try: | |
12 str = unicode | |
13 except (NameError): | |
14 pass | |
9 | 15 |
10 import os | 16 import os |
11 import fnmatch | 17 import fnmatch |
12 | 18 |
13 from PyQt4.QtCore import pyqtSlot, Qt, QProcess | 19 from PyQt4.QtCore import pyqtSlot, Qt, QProcess |
32 """ | 38 """ |
33 Constructor | 39 Constructor |
34 | 40 |
35 @param parent The parent widget (QWidget). | 41 @param parent The parent widget (QWidget). |
36 """ | 42 """ |
37 super().__init__(parent) | 43 super(TabnannyDialog, self).__init__(parent) |
38 self.setupUi(self) | 44 self.setupUi(self) |
39 | 45 |
40 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) | 46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
41 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) | 47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
42 | 48 |