src/eric7/Plugins/PluginWizardQInputDialog.py

branch
eric7
changeset 10331
c1a2ff7e3575
parent 10061
8bdad5699288
child 10437
2f70ca07f0af
equal deleted inserted replaced
10330:5ea038882dd6 10331:c1a2ff7e3575
105 Private method to display a dialog and get the code. 105 Private method to display a dialog and get the code.
106 106
107 @param editor reference to the current editor 107 @param editor reference to the current editor
108 @return the generated code (string) 108 @return the generated code (string)
109 """ 109 """
110 from eric7.Plugins.WizardPlugins.InputDialogWizard.InputDialogWizardDialog import ( # __IGNORE_WARNING__ 110 from eric7.Plugins.WizardPlugins.InputDialogWizard import (
111 InputDialogWizardDialog, 111 InputDialogWizardDialog,
112 ) 112 )
113 113
114 dlg = InputDialogWizardDialog(None) 114 dlg = InputDialogWizardDialog.InputDialogWizardDialog(None)
115 if dlg.exec() == QDialog.DialogCode.Accepted: 115 if dlg.exec() == QDialog.DialogCode.Accepted:
116 line, index = editor.getCursorPosition() 116 line, index = editor.getCursorPosition()
117 indLevel = editor.indentation(line) // editor.indentationWidth() 117 indLevel = editor.indentation(line) // editor.indentationWidth()
118 if editor.indentationsUseTabs(): 118 if editor.indentationsUseTabs():
119 indString = "\t" 119 indString = "\t"

eric ide

mercurial