eric7/UI/PythonDisViewer.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
18 from PyQt6.QtGui import QBrush 18 from PyQt6.QtGui import QBrush
19 from PyQt6.QtWidgets import ( 19 from PyQt6.QtWidgets import (
20 QTreeWidgetItem, QAbstractItemView, QWidget, QMenu 20 QTreeWidgetItem, QAbstractItemView, QWidget, QMenu
21 ) 21 )
22 22
23 from E5Gui.E5Application import e5App 23 from E5Gui.EricApplication import ericApp
24 from E5Gui.E5OverrideCursor import E5OverrideCursor 24 from E5Gui.EricOverrideCursor import EricOverrideCursor
25 25
26 import Preferences 26 import Preferences
27 27
28 from .Ui_PythonDisViewer import Ui_PythonDisViewer 28 from .Ui_PythonDisViewer import Ui_PythonDisViewer
29 29
473 return 473 return
474 474
475 filename = self.__editor.getFileName() 475 filename = self.__editor.getFileName()
476 filename = os.path.basename(filename) if filename else "<dis>" 476 filename = os.path.basename(filename) if filename else "<dis>"
477 477
478 with E5OverrideCursor(): 478 with EricOverrideCursor():
479 try: 479 try:
480 codeObject = self.__tryCompile(source, filename) 480 codeObject = self.__tryCompile(source, filename)
481 except Exception as exc: 481 except Exception as exc:
482 codeObject = None 482 codeObject = None
483 self.__createErrorItem(str(exc)) 483 self.__createErrorItem(str(exc))
884 884
885 def __configure(self): 885 def __configure(self):
886 """ 886 """
887 Private method to open the configuration dialog. 887 Private method to open the configuration dialog.
888 """ 888 """
889 e5App().getObject("UserInterface").showPreferences( 889 ericApp().getObject("UserInterface").showPreferences(
890 "pythonPage") 890 "pythonPage")

eric ide

mercurial