src/eric7/Plugins/PluginWizardQMessageBox.py

branch
eric7
changeset 11006
a671918232f3
parent 10730
454f6ff4e1cd
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
111 @return the generated code 111 @return the generated code
112 @rtype str 112 @rtype str
113 """ 113 """
114 from eric7.Plugins.WizardPlugins.MessageBoxWizard import MessageBoxWizardDialog 114 from eric7.Plugins.WizardPlugins.MessageBoxWizard import MessageBoxWizardDialog
115 115
116 dlg = MessageBoxWizardDialog.MessageBoxWizardDialog(None) 116 dlg = MessageBoxWizardDialog.MessageBoxWizardDialog(parent=self.__ui)
117 if dlg.exec() == QDialog.DialogCode.Accepted: 117 if dlg.exec() == QDialog.DialogCode.Accepted:
118 line, index = editor.getCursorPosition() 118 line, index = editor.getCursorPosition()
119 indLevel = editor.indentation(line) // editor.indentationWidth() 119 indLevel = editor.indentation(line) // editor.indentationWidth()
120 if editor.indentationsUseTabs(): 120 if editor.indentationsUseTabs():
121 indString = "\t" 121 indString = "\t"

eric ide

mercurial