2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a Python code coverage dialog. | 7 Module implementing a Python code coverage dialog. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 import os | 12 import os |
11 | 13 |
12 from PyQt4.QtCore import pyqtSlot, Qt | 14 from PyQt4.QtCore import pyqtSlot, Qt |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, \ | 15 from PyQt4.QtGui import QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, \ |
29 """ | 31 """ |
30 Constructor | 32 Constructor |
31 | 33 |
32 @param parent parent widget (QWidget) | 34 @param parent parent widget (QWidget) |
33 """ | 35 """ |
34 super().__init__(parent) | 36 super(PyCoverageDialog, self).__init__(parent) |
35 self.setupUi(self) | 37 self.setupUi(self) |
36 | 38 |
37 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) | 39 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
38 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) | 40 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
39 | 41 |