~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py

  • Committer: Peter Bienstman
  • Date: 2017-03-08 07:53:01 UTC
  • Revision ID: peter.bienstman@ugent.be-20170308075301-9fft7h5tkncbarcq
Fix bug in compact database.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    def show_answer(self):
127
127
        if self._state == "SELECT AHEAD":
128
128
            if self.config()["warned_about_learning_ahead"] == False:
129
 
                self.main_widget().show_information(_("Use 'Learn ahead of schedule' sparingly. For cramming before an exam, it's much better to use the cramming scheduler plugin"))
 
129
                self.main_widget().show_information(\
 
130
_("Use 'Learn ahead of schedule' sparingly. For cramming before an exam, it's much better to use the cramming scheduler plugin"))
130
131
                self.config()["warned_about_learning_ahead"] = True
131
132
            self.learning_ahead = True
132
133
            self.show_new_question()
143
144
        # Guide the learning process. 
144
145
        if self.config()["shown_learn_new_cards_help"] == False:
145
146
            if self.scheduled_count == 1:
146
 
                self.main_widget().show_information(_("You have finished your scheduled reviews. Now, learn as many failed or new cards as you feel like."))
 
147
                self.main_widget().show_information(\
 
148
_("You have finished your scheduled reviews. Now, learn as many failed or new cards as you feel like."))
147
149
                self.config()["shown_learn_new_cards_help"] = True          
148
150
        card_to_grade = self.card
149
151
        previous_grade = card_to_grade.grade