mirror of
https://github.com/ankitects/anki.git
synced 2025-11-17 10:07:13 -05:00
only prompt type in the answer once
This commit is contained in:
parent
61e3690831
commit
9ff30f0c26
2 changed files with 8 additions and 3 deletions
|
|
@ -438,7 +438,12 @@ new:
|
||||||
def showAnswerButton(self):
|
def showAnswerButton(self):
|
||||||
if self.currentCard.cardModel.typeAnswer:
|
if self.currentCard.cardModel.typeAnswer:
|
||||||
self.mainWin.buttonStack.setCurrentIndex(4)
|
self.mainWin.buttonStack.setCurrentIndex(4)
|
||||||
self.mainWin.typeAnswerField.selectAll()
|
if not unicode(self.mainWin.typeAnswerField.text()):
|
||||||
|
self.mainWin.typeAnswerField.setText(_(
|
||||||
|
"Type in the answer and hit enter"))
|
||||||
|
self.mainWin.typeAnswerField.selectAll()
|
||||||
|
else:
|
||||||
|
self.mainWin.typeAnswerField.setText("")
|
||||||
else:
|
else:
|
||||||
self.mainWin.buttonStack.setCurrentIndex(0)
|
self.mainWin.buttonStack.setCurrentIndex(0)
|
||||||
self.mainWin.showAnswerButton.setFocus()
|
self.mainWin.showAnswerButton.setFocus()
|
||||||
|
|
|
||||||
|
|
@ -733,7 +733,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>49</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
|
@ -762,7 +762,7 @@
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Type answer and hit enter</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue