def _rename_word(self, en_str, tr_str, ru_str): result = True try: self._dictionary.rename_word(self.old_en, en_str, tr_str, ru_str) self.callback() except dictionary.ErrDict as err: import error_dialog error_dialog.show_error(err.loc_res_msg) result = False return result
def execute(self, parent, args=None): import error_dialog error_dialog.show_error("err_oper_not_found")