src/eric7/Plugins/PluginWizardQMessageBox.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.MessageBoxWizard.MessageBoxWizardDialog import ( # __IGNORE_WARNING__ 110 from eric7.Plugins.WizardPlugins.MessageBoxWizard import MessageBoxWizardDialog
111 MessageBoxWizardDialog,
112 )
113 111
114 dlg = MessageBoxWizardDialog(None) 112 dlg = MessageBoxWizardDialog.MessageBoxWizardDialog(None)
115 if dlg.exec() == QDialog.DialogCode.Accepted: 113 if dlg.exec() == QDialog.DialogCode.Accepted:
116 line, index = editor.getCursorPosition() 114 line, index = editor.getCursorPosition()
117 indLevel = editor.indentation(line) // editor.indentationWidth() 115 indLevel = editor.indentation(line) // editor.indentationWidth()
118 if editor.indentationsUseTabs(): 116 if editor.indentationsUseTabs():
119 indString = "\t" 117 indString = "\t"

eric ide

mercurial