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 eric7.EricWidgets.EricApplication import ericApp |
|
16 from eric7.EricGui.EricAction import EricAction |
15 from eric7.EricGui.EricAction import EricAction |
17 from eric7.EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
18 |
17 from eric7.EricWidgets.EricApplication import ericApp |
19 from eric7.UI import Info |
18 from eric7.UI import Info |
20 |
19 |
21 # Start-Of-Header |
20 # Start-Of-Header |
22 name = "QFileDialog Wizard Plugin" |
21 name = "QFileDialog Wizard Plugin" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
22 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
138 @param variant variant of code to be generated |
137 @param variant variant of code to be generated |
139 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
138 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
140 @type int |
139 @type int |
141 @return the generated code (string) |
140 @return the generated code (string) |
142 """ |
141 """ |
143 from eric7.Plugins.WizardPlugins.FileDialogWizard.FileDialogWizardDialog import ( |
142 from eric7.Plugins.WizardPlugins.FileDialogWizard.FileDialogWizardDialog import ( # __IGNORE_WARNING__ |
144 # __IGNORE_WARNING__ |
|
145 FileDialogWizardDialog, |
143 FileDialogWizardDialog, |
146 ) |
144 ) |
147 |
145 |
148 dlg = FileDialogWizardDialog(variant, None) |
146 dlg = FileDialogWizardDialog(variant, None) |
149 if dlg.exec() == QDialog.DialogCode.Accepted: |
147 if dlg.exec() == QDialog.DialogCode.Accepted: |