eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py	Sat May 22 18:51:46 2021 +0200
@@ -12,8 +12,8 @@
 from PyQt6.QtCore import pyqtSlot
 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
 
-from E5Gui.E5Application import e5App
-from E5Gui import E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui import EricMessageBox
 
 from .Ui_DotDesktopWizardDialog import Ui_DotDesktopWizardDialog
 
@@ -101,7 +101,7 @@
         self.kdeEncodingComboBox.setCurrentIndex(
             self.kdeEncodingComboBox.findText("utf-8"))
         
-        projectOpen = e5App().getObject("Project").isOpen()
+        projectOpen = ericApp().getObject("Project").isOpen()
         self.projectButton.setEnabled(projectOpen)
         
         icon = UI.PixmapCache.getIcon("listSelection")
@@ -237,7 +237,7 @@
         Private slot to populate some fields with data retrieved from the
         current project.
         """
-        project = e5App().getObject("Project")
+        project = ericApp().getObject("Project")
         
         self.nameEdit.setText(project.getProjectName())
         self.genericNameEdit.setText(project.getProjectName())
@@ -285,7 +285,7 @@
         """
         self.__checkOK()
         if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()):
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr(".desktop Wizard"),
                 self.tr("""Only one of 'Only Show In' or """
@@ -315,7 +315,7 @@
         """
         self.__checkOK()
         if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()):
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr(".desktop Wizard"),
                 self.tr("""Only one of 'Only Show In' or """

eric ide

mercurial