10 import re |
10 import re |
11 |
11 |
12 from PyQt6.QtCore import QObject |
12 from PyQt6.QtCore import QObject |
13 from PyQt6.QtWidgets import QDialog |
13 from PyQt6.QtWidgets import QDialog |
14 |
14 |
15 from EricWidgets.EricApplication import ericApp |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 from EricGui.EricAction import EricAction |
16 from eric7.EricGui.EricAction import EricAction |
17 from EricWidgets import EricMessageBox |
17 from eric7.EricWidgets import EricMessageBox |
18 |
18 |
19 import UI.Info |
19 from eric7.UI import Info |
20 |
20 |
21 # Start-Of-Header |
21 # Start-Of-Header |
22 name = "QFileDialog Wizard Plugin" |
22 name = "QFileDialog Wizard Plugin" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 autoactivate = True |
24 autoactivate = True |
25 deactivateable = True |
25 deactivateable = True |
26 version = UI.Info.VersionOnly |
26 version = Info.VersionOnly |
27 className = "FileDialogWizard" |
27 className = "FileDialogWizard" |
28 packageName = "__core__" |
28 packageName = "__core__" |
29 shortDescription = "Show the QFileDialog wizard." |
29 shortDescription = "Show the QFileDialog wizard." |
30 longDescription = """This plugin shows the QFileDialog wizard.""" |
30 longDescription = """This plugin shows the QFileDialog wizard.""" |
31 pyqtApi = 2 |
31 pyqtApi = 2 |
138 @param variant variant of code to be generated |
138 @param variant variant of code to be generated |
139 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
139 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
140 @type int |
140 @type int |
141 @return the generated code (string) |
141 @return the generated code (string) |
142 """ |
142 """ |
143 from WizardPlugins.FileDialogWizard.FileDialogWizardDialog import ( |
143 from eric7.Plugins.WizardPlugins.FileDialogWizard.FileDialogWizardDialog import ( |
|
144 # __IGNORE_WARNING__ |
144 FileDialogWizardDialog, |
145 FileDialogWizardDialog, |
145 ) |
146 ) |
146 |
147 |
147 dlg = FileDialogWizardDialog(variant, None) |
148 dlg = FileDialogWizardDialog(variant, None) |
148 if dlg.exec() == QDialog.DialogCode.Accepted: |
149 if dlg.exec() == QDialog.DialogCode.Accepted: |