예제 #1
0
파일: browser.py 프로젝트: RumovZ/anki
 def suspend_selected_cards(self, checked: bool) -> None:
     cids = self.selected_cards()
     if checked:
         suspend_cards(parent=self, card_ids=cids).run_in_background()
     else:
         unsuspend_cards(parent=self.mw, card_ids=cids).run_in_background()
예제 #2
0
 def suspend_current_card(self) -> None:
     suspend_cards(
         parent=self.mw,
         card_ids=[self.card.id],
     ).success(lambda _: tooltip(tr.studying_card_suspended())).run_in_background()