vary button labels depending on the card's last answer

This commit is contained in:
Damien Elmes 2010-01-29 17:42:55 +09:00
parent 45ba91697e
commit 1eaedfafa5

View file

@ -632,8 +632,14 @@ new:
self.mainWin.buttonStack.setLayoutDirection(Qt.LeftToRight) self.mainWin.buttonStack.setLayoutDirection(Qt.LeftToRight)
if self.defaultEaseButton() == 2: if self.defaultEaseButton() == 2:
self.mainWin.easeButton2.setFocus() self.mainWin.easeButton2.setFocus()
self.mainWin.easeButton2.setText(_("Good"))
self.mainWin.easeButton3.setText(_("Easy"))
self.mainWin.easeButton4.setText(_("Very Easy"))
else: else:
self.mainWin.easeButton3.setFocus() self.mainWin.easeButton3.setFocus()
self.mainWin.easeButton2.setText(_("Hard"))
self.mainWin.easeButton3.setText(_("Good"))
self.mainWin.easeButton4.setText(_("Easy"))
def defaultEaseButton(self): def defaultEaseButton(self):
if self.currentCard.reps and not self.currentCard.successive: if self.currentCard.reps and not self.currentCard.successive: