eric6/UI/PythonAstViewer.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
7 Module implementing a widget to visualize the Python AST for some Python 7 Module implementing a widget to visualize the Python AST for some Python
8 sources. 8 sources.
9 """ 9 """
10 10
11 from __future__ import unicode_literals 11 from __future__ import unicode_literals
12
13 try:
14 str = unicode
15 except NameError:
16 pass
17 12
18 import ast 13 import ast
19 14
20 from PyQt5.QtCore import pyqtSlot, Qt, QTimer 15 from PyQt5.QtCore import pyqtSlot, Qt, QTimer
21 from PyQt5.QtGui import QCursor, QBrush 16 from PyQt5.QtGui import QCursor, QBrush

eric ide

mercurial