eric7/Debugger/CallStackViewer.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8322
b422b4e77d19
child 8358
144a6b854f70
--- a/eric7/Debugger/CallStackViewer.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Debugger/CallStackViewer.py	Sat May 22 18:51:46 2021 +0200
@@ -12,8 +12,8 @@
     QTreeWidget, QTreeWidgetItem, QMenu, QWidget, QVBoxLayout, QLabel
 )
 
-from E5Gui.E5Application import e5App
-from E5Gui import E5FileDialog, E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui import EricFileDialog, EricMessageBox
 
 import Utilities
 
@@ -101,7 +101,7 @@
         """
         self.__projectMode = enabled
         if enabled and self.__project is None:
-            self.__project = e5App().getObject("Project")
+            self.__project = ericApp().getObject("Project")
     
     def __showContextMenu(self, coord):
         """
@@ -188,13 +188,13 @@
         Private slot to save the stack trace info to a file.
         """
         if self.__callStackList.topLevelItemCount() > 0:
-            fname, selectedFilter = E5FileDialog.getSaveFileNameAndFilter(
+            fname, selectedFilter = EricFileDialog.getSaveFileNameAndFilter(
                 self,
                 self.tr("Save Call Stack Info"),
                 "",
                 self.tr("Text Files (*.txt);;All Files (*)"),
                 None,
-                E5FileDialog.DontConfirmOverwrite)
+                EricFileDialog.DontConfirmOverwrite)
             if fname:
                 ext = QFileInfo(fname).suffix()
                 if not ext:
@@ -202,12 +202,12 @@
                     if ex:
                         fname += ex
                 if QFileInfo(fname).exists():
-                    res = E5MessageBox.yesNo(
+                    res = EricMessageBox.yesNo(
                         self,
                         self.tr("Save Call Stack Info"),
                         self.tr("<p>The file <b>{0}</b> already exists."
                                 " Overwrite it?</p>").format(fname),
-                        icon=E5MessageBox.Warning)
+                        icon=EricMessageBox.Warning)
                     if not res:
                         return
                     fname = Utilities.toNativeSeparators(fname)
@@ -224,7 +224,7 @@
                             f.write("{0}\n".format(78 * "="))
                             itm = self.__callStackList.itemBelow(itm)
                 except OSError as err:
-                    E5MessageBox.critical(
+                    EricMessageBox.critical(
                         self,
                         self.tr("Error saving Call Stack Info"),
                         self.tr("""<p>The call stack info could not be"""

eric ide

mercurial