Пример #1
0
 def end_lesson(self):
     try:
         self.lesson.end_lesson()
     except dictionary.ErrDict as err:
         error_dialog.show_critical_error(err.loc_res_msg)
         sys.exit(0)
     self.hide()
     retry_time = self.cfg["retry_time"] * 1000
     self.after(retry_time, self.new_lesson)
Пример #2
0
 def end_lesson(self):
     try:
         self.lesson.end_lesson()
     except dictionary.ErrDict as err:
         error_dialog.show_critical_error(err.loc_res_msg)
         sys.exit(0)
     self.hide()
     retry_time = self.cfg["retry_time"] * 1000
     self.after(retry_time, self.new_lesson)
Пример #3
0
    def new_lesson(self):
        self.cfg.reload()
        try:
            self.lesson = lesson.Lesson(self.cfg)
        except dictionary.ErrDict as err:
            error_dialog.show_critical_error(err.loc_res_msg)
            sys.exit(0)

        self.factory.create(self.lesson.get_dict(), self.cfg)
        self.practice = None
        self.new_practice()
        self.show()
Пример #4
0
    def new_lesson(self):
        self.cfg.reload()
        try:
            self.lesson = lesson.Lesson(self.cfg)
        except dictionary.ErrDict as err:
            error_dialog.show_critical_error(err.loc_res_msg)
            sys.exit(0)

        self.factory.create(self.lesson.get_dict(), self.cfg)
        self.practice = None
        self.new_practice()
        self.show()