glutanimate / highlight-search-results

Highlight Search Results in the Browser add-on for Anki
https://ankiweb.net/shared/info/225180905
Other
13 stars 5 forks source link

Add PyQt6 imports #22

Closed zjosua closed 11 months ago

zjosua commented 12 months ago

fixes #21

Description

Added PyQt6 imports, because Anki 23.10 will have Qt5 compat disabled by default.

Checklist:

khonkhortisan commented 11 months ago

I'm confirming that this commit works on Anki 23.10 beta 6 on Windows 10 alongside all my other addons (and that what I wrote in #21 didn't work)

dae commented 11 months ago

Rather than version checks or try/except, you can just import from aqt.qt: https://addon-docs.ankiweb.net/qt.html#qt-versions

glutanimate commented 11 months ago

Thanks as always @zjosua! Switched to the aqt.qt shim in a quick follow-up commit.