Anki/pylib/anki
Damien Elmes 7fc32db0c9 fix: slowdowns after import; hard to read popup
QTextEdit() will pin the CPU at 100% for seconds to minutes when
fed a large string to display - work around it by switching to
QPlainTextEdit().

Also strip HTML before showing the user - easier to read, and less
text to display. And turn off word wrap, as it makes it easier to skim,
and further reduces the work the widget needs to do.

https://forums.ankiweb.net/t/big-issue-where-anki-gets-slow-when-you-import-this-deck/7050
2021-02-02 15:49:47 +10:00
..
_backend add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
importing fix: slowdowns after import; hard to read popup 2021-02-02 15:49:47 +10:00
syncserver add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
__init__.py add coding specifier to anki/__init__.py 2020-11-11 21:51:11 +10:00
BUILD.bazel fix _backend files not getting format checked 2021-01-31 18:56:16 +10:00
buildinfo.py fix some warnings on startup 2020-12-16 15:38:24 +10:00
cards.py make backend instance on col private 2021-01-31 18:56:16 +10:00
collection.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
config.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
consts.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
db.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
dbproxy.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
decks.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
errors.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
exporting.py start work on more clearly defining backend/protobuf boundaries 2021-01-31 18:55:45 +10:00
find.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
hooks.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
httpclient.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
lang.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
latex.py make backend instance on col private 2021-01-31 18:56:16 +10:00
media.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
models.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
notes.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
rsbackend.py embed kind enum in StockNoteType and remove prefix 2021-01-31 18:56:16 +10:00
sched.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
schedv2.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
sound.py support speed control in tts tags 2020-01-26 14:31:07 +10:00
stats.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
statsbg.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
stdmodels.py make backend instance on col private 2021-01-31 18:56:16 +10:00
storage.py storage->collection 2020-05-20 17:58:28 +10:00
sync.py start work on more clearly defining backend/protobuf boundaries 2021-01-31 18:55:45 +10:00
tags.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
template.py make backend instance on col private 2021-01-31 18:56:16 +10:00
types.py exhaustiveness checks on literals are now possible with the move to py38 2020-12-18 16:50:55 +10:00
utils.py warn add-ons importing json from anki.utils; use stdout not stderr 2021-01-31 21:05:46 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00