2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a widget to select a symbol in various formats. | 7 Module implementing a widget to select a symbol in various formats. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 import unicodedata | 12 import unicodedata |
11 import html.entities | 13 import html.entities |
12 | 14 |
13 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, QModelIndex, Qt, \ | 15 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, QModelIndex, Qt, \ |
29 """ | 31 """ |
30 Constructor | 32 Constructor |
31 | 33 |
32 @param parent reference to the parent object (QObject) | 34 @param parent reference to the parent object (QObject) |
33 """ | 35 """ |
34 super().__init__(parent) | 36 super(SymbolsModel, self).__init__(parent) |
35 | 37 |
36 self.__headerData = [ | 38 self.__headerData = [ |
37 self.trUtf8("Code"), | 39 self.trUtf8("Code"), |
38 self.trUtf8("Char"), | 40 self.trUtf8("Char"), |
39 self.trUtf8("Hex"), | 41 self.trUtf8("Hex"), |
343 """ | 345 """ |
344 Constructor | 346 Constructor |
345 | 347 |
346 @param parent reference to the parent widget (QWidget) | 348 @param parent reference to the parent widget (QWidget) |
347 """ | 349 """ |
348 super().__init__(parent) | 350 super(SymbolsWidget, self).__init__(parent) |
349 self.setupUi(self) | 351 self.setupUi(self) |
350 | 352 |
351 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) | 353 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) |
352 | 354 |
353 self.__model = SymbolsModel(self) | 355 self.__model = SymbolsModel(self) |