eric7/Plugins/PluginWizardPyRegExp.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/Plugins/PluginWizardPyRegExp.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Plugins/PluginWizardPyRegExp.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
 
@@ -63,13 +63,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('Python re Wizard'),
             self.tr('&Python re Wizard...'), 0, 0, self,
             'wizards_python_re')
@@ -82,7 +82,7 @@
         ))
         self.action.triggered.connect(self.__handle)
         
-        self.__ui.addE5Actions([self.action], 'wizards')
+        self.__ui.addEricActions([self.action], 'wizards')
 
     def __initMenu(self):
         """
@@ -118,10 +118,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