Tag Statistics [Official Support]

If you have questions/suggestions/bug reports regarding this add-on, feel free to post them here.

https://ankiweb.net/shared/info/1909213926

1 Like

not working with anki 23.10.1

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-02 21:19:48
Add-ons possibly involved: ⁨Tag Statistics⁊

Caught exception:
Traceback (most recent call last):
File “aqt.webview”, line 50, in cmd
File “aqt.webview”, line 157, in _onCmd
File “aqt.webview”, line 686, in _onBridgeCmd
File “aqt.toolbar”, line 411, in linkHandler
File "C:\Users\Salman\AppData\Roaming\Anki2\addons21\1909213926_init
.py", line 31, in open_main_window
dialog = MainDialog(aqt.mw.app.activeWindow())
File “C:\Users\Salman\AppData\Roaming\Anki2\addons21\1909213926\window.py”, line 25, in init
QDialog.init(self, parent, Qt.WindowMaximizeButtonHint|Qt.WindowMinimizeButtonHint|Qt.WindowCloseButtonHint)
AttributeError: type object ‘Qt’ has no attribute ‘WindowMaximizeButtonHint’

I think this is now QtConst.WindowMaximizeButtonHint in more recent versions of PyQt, no?

I think the approved way of handling this for Anki add-ons would be simply
from aqt.qt import WindowMaximizeButtonHint
but I’m not the author of this add-on and I haven’t actually tried the above.

The author might find this link useful: