src/eric7/Plugins/PluginWizardQMessageBox.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
8 """ 8 """
9 9
10 from PyQt6.QtCore import QObject 10 from PyQt6.QtCore import QObject
11 from PyQt6.QtWidgets import QDialog 11 from PyQt6.QtWidgets import QDialog
12 12
13 from EricWidgets.EricApplication import ericApp 13 from eric7.EricWidgets.EricApplication import ericApp
14 from EricGui.EricAction import EricAction 14 from eric7.EricGui.EricAction import EricAction
15 from EricWidgets import EricMessageBox 15 from eric7.EricWidgets import EricMessageBox
16 16
17 import UI.Info 17 from eric7.UI import Info
18 18
19 # Start-Of-Header 19 # Start-Of-Header
20 name = "QMessageBox Wizard Plugin" 20 name = "QMessageBox Wizard Plugin"
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 21 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
22 autoactivate = True 22 autoactivate = True
23 deactivateable = True 23 deactivateable = True
24 version = UI.Info.VersionOnly 24 version = Info.VersionOnly
25 className = "MessageBoxWizard" 25 className = "MessageBoxWizard"
26 packageName = "__core__" 26 packageName = "__core__"
27 shortDescription = "Show the QMessageBox wizard." 27 shortDescription = "Show the QMessageBox wizard."
28 longDescription = """This plugin shows the QMessageBox wizard.""" 28 longDescription = """This plugin shows the QMessageBox wizard."""
29 pyqtApi = 2 29 pyqtApi = 2
104 Private method to display a dialog and get the code. 104 Private method to display a dialog and get the code.
105 105
106 @param editor reference to the current editor 106 @param editor reference to the current editor
107 @return the generated code (string) 107 @return the generated code (string)
108 """ 108 """
109 from WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog import ( 109 from eric7.Plugins.WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog import (
110 # __IGNORE_WARNING__
110 MessageBoxWizardDialog, 111 MessageBoxWizardDialog,
111 ) 112 )
112 113
113 dlg = MessageBoxWizardDialog(None) 114 dlg = MessageBoxWizardDialog(None)
114 if dlg.exec() == QDialog.DialogCode.Accepted: 115 if dlg.exec() == QDialog.DialogCode.Accepted:

eric ide

mercurial