146 @return the generated code |
146 @return the generated code |
147 @rtype str |
147 @rtype str |
148 """ |
148 """ |
149 from eric7.Plugins.WizardPlugins.FileDialogWizard import FileDialogWizardDialog |
149 from eric7.Plugins.WizardPlugins.FileDialogWizard import FileDialogWizardDialog |
150 |
150 |
151 dlg = FileDialogWizardDialog.FileDialogWizardDialog(variant, None) |
151 dlg = FileDialogWizardDialog.FileDialogWizardDialog(variant, parent=self.__ui) |
152 if dlg.exec() == QDialog.DialogCode.Accepted: |
152 if dlg.exec() == QDialog.DialogCode.Accepted: |
153 line, index = editor.getCursorPosition() |
153 line, index = editor.getCursorPosition() |
154 indLevel = editor.indentation(line) // editor.indentationWidth() |
154 indLevel = editor.indentation(line) // editor.indentationWidth() |
155 if editor.indentationsUseTabs(): |
155 if editor.indentationsUseTabs(): |
156 indString = "\t" |
156 indString = "\t" |