Anki/qt/aqt
David Culley 37a3f4708a
Refactor _addButton method of editor (#3294)
* refactor: simplify f-string

* refactor: use more readable names

* style: separate if-else-clauses by empty lines

* fix: add missing import

Properly `import os`.

* refactor: simplify variable assignment

* refactor: rename variables

* refactor: use f-string

* refactor: reorder variables

* refactor: simplify if-clause with de morgan's laws

* refactor: simplify if-else-construct

* fixup! refactor: rename variables

* Revert "refactor: use f-string"

This reverts commit 1dcb58bdab.

* Revert "fixup! refactor: rename variables"

This reverts commit 813130ba6a.
2024-08-04 20:51:45 +07:00
..
browser Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
data Revert "About section transparent logo (#3284)" (#3315) 2024-07-22 02:09:40 +07:00
forms A11Y: Improve the accessibility of the Preferences dialog (#3255) 2024-07-10 19:58:47 +07:00
import_export Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
operations Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
qt Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
__init__.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
_macos_helper.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
about.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
addcards.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
addons.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
changenotetype.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
clayout.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
colors.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
customstudy.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
dbcheck.py Ensure DB check tooltip appears in main window 2024-04-30 23:21:41 +10:00
debug_console.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
deckbrowser.py Bump Python deps 2024-07-06 18:40:37 +07:00
deckchooser.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
deckconf.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
deckdescription.py Update Python deps 2023-03-31 14:04:05 +10:00
deckoptions.py Restore $deckOptions (#3265) 2024-06-28 19:38:18 +07:00
editcurrent.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
editor.py Refactor _addButton method of editor (#3294) 2024-08-04 20:51:45 +07:00
emptycards.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
errors.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
exporting.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
fields.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
filtered_deck.py Use seconds instead of minutes for preview delay 2023-12-21 11:02:29 +10:00
flags.py Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
gui_hooks.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
importing.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
legacy.py Import submodules directly (#1662) 2022-02-13 13:40:47 +10:00
log.py Add support for python logging (#2969) 2024-02-11 16:41:50 +10:00
main.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
mediacheck.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
mediasrv.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
mediasync.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
modelchooser.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
models.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
mpv.py Update type annotations to use | operator (#3323) 2024-07-26 18:15:39 +07:00
notetypechooser.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
overview.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
package.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
preferences.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
profiles.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
progress.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
props.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
reviewer.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
schema_change_tracker.py Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
sound.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
stats.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
studydeck.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
stylesheets.py Workaround Ubuntu ignoring tooltip palette in dark mode 2023-05-31 15:19:10 +10:00
switch.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
sync.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
tagedit.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
taglimit.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
taskman.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
theme.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
toolbar.py Update type annotation syntax (#3283) 2024-07-21 14:00:52 +07:00
tts.py Improve exception handling (#3290) 2024-08-04 20:51:13 +07:00
undo.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
update.py Fix update suppression 2024-01-09 14:12:26 +10:00
utils.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
webview.py Update type annotations (#3322) 2024-07-26 17:57:25 +07:00
widgetgallery.py Improve debug console (#2435) 2023-03-15 15:29:05 +10:00
winpaths.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00