2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a widget to show numbers in different formats. | 7 Module implementing a widget to show numbers in different formats. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtCore import pyqtSlot, pyqtSignal, Qt, QAbstractTableModel, qVersion | 12 from PyQt4.QtCore import pyqtSlot, pyqtSignal, Qt, QAbstractTableModel, qVersion |
11 from PyQt4.QtGui import QWidget, QHeaderView | 13 from PyQt4.QtGui import QWidget, QHeaderView |
12 | 14 |
13 from E5Gui.E5Application import e5App | 15 from E5Gui.E5Application import e5App |
25 """ | 27 """ |
26 Constructor | 28 Constructor |
27 | 29 |
28 @param parent reference to the parent widget (QWidget) | 30 @param parent reference to the parent widget (QWidget) |
29 """ | 31 """ |
30 super().__init__(parent) | 32 super(BinaryModel, self).__init__(parent) |
31 | 33 |
32 self.__bits = 0 | 34 self.__bits = 0 |
33 self.__value = 0 | 35 self.__value = 0 |
34 | 36 |
35 def rowCount(self, parent): | 37 def rowCount(self, parent): |
160 """ | 162 """ |
161 Constructor | 163 Constructor |
162 | 164 |
163 @param parent reference to the parent widget (QWidget) | 165 @param parent reference to the parent widget (QWidget) |
164 """ | 166 """ |
165 super().__init__(parent) | 167 super(NumbersWidget, self).__init__(parent) |
166 self.setupUi(self) | 168 self.setupUi(self) |
167 | 169 |
168 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) | 170 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) |
169 | 171 |
170 self.__badNumberSheet = "background-color: #ffa0a0;" | 172 self.__badNumberSheet = "background-color: #ffa0a0;" |