eric7/Plugins/PluginWizardSetup.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/Plugins/PluginWizardSetup.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Plugins/PluginWizardSetup.py	Sat May 22 18:51:46 2021 +0200
@@ -10,9 +10,9 @@
 from PyQt6.QtCore import QObject
 from PyQt6.QtWidgets import QDialog
 
-from E5Gui.E5Application import e5App
-from E5Gui.E5Action import E5Action
-from E5Gui import E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui.EricAction import EricAction
+from E5Gui import EricMessageBox
 
 import UI.Info
 
@@ -75,13 +75,13 @@
         menu = self.__ui.getMenu("wizards")
         if menu:
             menu.removeAction(self.__action)
-        self.__ui.removeE5Actions([self.__action], 'wizards')
+        self.__ui.removeEricActions([self.__action], 'wizards')
     
     def __initAction(self):
         """
         Private method to initialize the action.
         """
-        self.__action = E5Action(
+        self.__action = EricAction(
             self.tr('setup.py Wizard'),
             self.tr('&setup.py Wizard...'),
             0, 0, self,
@@ -96,7 +96,7 @@
         ))
         self.__action.triggered.connect(self.__handle)
         
-        self.__ui.addE5Actions([self.__action], 'wizards')
+        self.__ui.addEricActions([self.__action], 'wizards')
 
     def __initMenu(self):
         """
@@ -132,10 +132,10 @@
         """
         Private method to handle the wizards action.
         """
-        editor = e5App().getObject("ViewManager").activeWindow()
+        editor = ericApp().getObject("ViewManager").activeWindow()
         
         if editor is None:
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self.__ui,
                 self.tr('No current editor'),
                 self.tr('Please open or create a file first.'))

eric ide

mercurial