mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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):
|
def _debugCard(self):
|
||||||
return self.reviewer.card.__dict__
|
return self.reviewer.card.__dict__
|
||||||
|
|
||||||
|
def _debugBrowserCard(self):
|
||||||
|
return aqt.dialogs._dialogs['Browser'][1].card.__dict__
|
||||||
|
|
||||||
def onDebugPrint(self, frm):
|
def onDebugPrint(self, frm):
|
||||||
frm.text.setPlainText("pp(%s)" % frm.text.toPlainText())
|
frm.text.setPlainText("pp(%s)" % frm.text.toPlainText())
|
||||||
self.onDebugRet(frm)
|
self.onDebugRet(frm)
|
||||||
|
@ -931,6 +934,7 @@ will be lost. Continue?"""))
|
||||||
import pprint, traceback
|
import pprint, traceback
|
||||||
text = frm.text.toPlainText()
|
text = frm.text.toPlainText()
|
||||||
card = self._debugCard
|
card = self._debugCard
|
||||||
|
bcard = self._debugBrowserCard
|
||||||
mw = self
|
mw = self
|
||||||
pp = pprint.pprint
|
pp = pprint.pprint
|
||||||
self._captureOutput(True)
|
self._captureOutput(True)
|
||||||
|
|
Loading…
Reference in a new issue