mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
bcard()
This commit is contained in:
parent
176158b97b
commit
39eec87c0e
1 changed files with 4 additions and 0 deletions
|
@ -923,6 +923,9 @@ will be lost. Continue?"""))
|
|||
def _debugCard(self):
|
||||
return self.reviewer.card.__dict__
|
||||
|
||||
def _debugBrowserCard(self):
|
||||
return aqt.dialogs._dialogs['Browser'][1].card.__dict__
|
||||
|
||||
def onDebugPrint(self, frm):
|
||||
frm.text.setPlainText("pp(%s)" % frm.text.toPlainText())
|
||||
self.onDebugRet(frm)
|
||||
|
@ -931,6 +934,7 @@ will be lost. Continue?"""))
|
|||
import pprint, traceback
|
||||
text = frm.text.toPlainText()
|
||||
card = self._debugCard
|
||||
bcard = self._debugBrowserCard
|
||||
mw = self
|
||||
pp = pprint.pprint
|
||||
self._captureOutput(True)
|
||||
|
|
Loading…
Reference in a new issue