예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def execute(self, parent, args=None):
     import error_dialog
     error_dialog.show_error("err_oper_not_found")