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 = "QColorDialog Wizard Plugin" |
20 name = "QColorDialog 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 = "ColorDialogWizard" |
25 className = "ColorDialogWizard" |
26 packageName = "__core__" |
26 packageName = "__core__" |
27 shortDescription = "Show the QColorDialog wizard." |
27 shortDescription = "Show the QColorDialog wizard." |
28 longDescription = """This plugin shows the QColorDialog wizard.""" |
28 longDescription = """This plugin shows the QColorDialog 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) and a success flag (boolean) |
107 @return the generated code (string) and a success flag (boolean) |
108 """ |
108 """ |
109 from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import ( |
109 from eric7.Plugins.WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import ( |
|
110 # __IGNORE_WARNING__ |
110 ColorDialogWizardDialog, |
111 ColorDialogWizardDialog, |
111 ) |
112 ) |
112 |
113 |
113 dlg = ColorDialogWizardDialog(None) |
114 dlg = ColorDialogWizardDialog(None) |
114 if dlg.exec() == QDialog.DialogCode.Accepted: |
115 if dlg.exec() == QDialog.DialogCode.Accepted: |