src/eric7/Plugins/PluginWizardQFileDialog.py

branch
eric7
changeset 11006
a671918232f3
parent 10730
454f6ff4e1cd
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
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"

eric ide

mercurial