Plugins/PluginWizardE5MessageBox.py

branch
maintenance
changeset 6826
c6dda2cbe081
parent 6735
31e263d49c04
equal deleted inserted replaced
6764:d14ddbfbbd36 6826:c6dda2cbe081
121 Private method to handle the wizards action. 121 Private method to handle the wizards action.
122 """ 122 """
123 editor = e5App().getObject("ViewManager").activeWindow() 123 editor = e5App().getObject("ViewManager").activeWindow()
124 124
125 if editor is None: 125 if editor is None:
126 E5MessageBox.critical( 126 E5MessageBox.critical(
127 self.__ui, 127 self.__ui,
128 self.tr('No current editor'), 128 self.tr('No current editor'),
129 self.tr('Please open or create a file first.')) 129 self.tr('Please open or create a file first.'))
130 else: 130 else:
131 code, ok = self.__callForm(editor) 131 code, ok = self.__callForm(editor)
132 if ok: 132 if ok:
133 line, index = editor.getCursorPosition() 133 line, index = editor.getCursorPosition()
134 # It should be done on this way to allow undo 134 # It should be done on this way to allow undo

eric ide

mercurial