eric7/QScintilla/Shell.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/QScintilla/Shell.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/QScintilla/Shell.py	Sat May 22 18:51:46 2021 +0200
@@ -20,8 +20,8 @@
 )
 from PyQt6.Qsci import QsciScintilla
 
-from E5Gui.E5Application import e5App
-from E5Gui import E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui import EricMessageBox
 
 from .QsciScintillaCompat import QsciScintillaCompat
 
@@ -391,7 +391,7 @@
         Private slot to prepare the start submenu.
         """
         self.lmenu.clear()
-        venvManager = e5App().getObject("VirtualEnvManager")
+        venvManager = ericApp().getObject("VirtualEnvManager")
         for venvName in sorted(venvManager.getVirtualenvNames()):
             self.lmenu.addAction(venvName)
         if self.__project.isOpen():
@@ -1869,7 +1869,7 @@
                         cmd = ''
                 elif cmd in ['%envs', '%environments']:
                     venvs = (
-                        e5App().getObject("VirtualEnvManager")
+                        ericApp().getObject("VirtualEnvManager")
                         .getVirtualenvNames()
                     )
                     s = (
@@ -2196,7 +2196,7 @@
                     if not QFileInfo(fname).isDir():
                         self.vm.openSourceFile(fname)
                     else:
-                        E5MessageBox.information(
+                        EricMessageBox.information(
                             self,
                             self.tr("Drop Error"),
                             self.tr("""<p><b>{0}</b> is not a file.</p>""")
@@ -2284,7 +2284,7 @@
         """
         Private method to open the configuration dialog.
         """
-        e5App().getObject("UserInterface").showPreferences("shellPage")
+        ericApp().getObject("UserInterface").showPreferences("shellPage")
     
     def __find(self):
         """

eric ide

mercurial