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 |
9 |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
10 from __future__ import unicode_literals |
11 |
11 |
12 import sys |
12 import sys |
13 import unicodedata |
13 import unicodedata |
14 try: # Py3 |
14 try: # Py3 |
15 import html.entities as html_entities |
15 import html.entities as html_entities |
16 except (ImportError): |
16 except (ImportError): |
17 chr = unichr |
17 chr = unichr # __IGNORE_WARNING__ |
18 import htmlentitydefs as html_entities # __IGNORE_WARNING__ |
18 import htmlentitydefs as html_entities # __IGNORE_WARNING__ |
19 |
19 |
20 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, \ |
20 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, \ |
21 QModelIndex, Qt, qVersion |
21 QModelIndex, Qt, qVersion |
22 from PyQt4.QtGui import QWidget, QHeaderView, QAbstractItemView, QColor, \ |
22 from PyQt4.QtGui import QWidget, QHeaderView, QAbstractItemView, QColor, \ |