Plugins/PluginWizardE5MessageBox.py

changeset 6735
31e263d49c04
parent 6645
ad476851d7e0
equal deleted inserted replaced
6734:1eaf6955acf5 6735:31e263d49c04
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