# Tag Statistics \[Official Support\]

**URL:** <https://forums.ankiweb.net/t/tag-statistics-official-support/20930>\
**Category:** Add-ons\
**Created:** [June 21, 2022, 11:46am UTC](https://forums.ankiweb.net/t/tag-statistics-official-support/20930 "2022-06-21T11:46:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sprvlcn](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sprvlcn](https://forums.ankiweb.net/u/sprvlcn)\
**Post date:** [December 3, 2023, 3:18pm UTC](https://forums.ankiweb.net/t/tag-statistics-official-support/20930/4 "2023-12-03T15:18:26Z")

</div>

I think this is now Qt **Const**.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:

> [@Porting tips for Anki 23.10](https://forums.ankiweb.net/t/porting-tips-for-anki-23-10/35916):
>
> Version checks Add-ons that were manually deconstructing Anki’s version string and making assumptions about the number of components it has should instead switch to Anki’s built-in tools for getting the version number. For example: from anki import buildinfo if int(buildinfo.version.split(".")[2]) \< 45: # \< 2.1.45 …should become: from anki.utils import pointVersion if pointVersion() \< 45: ... For Anki 2.1.x releases, it will return the x. For Anki 23.10+, it packs the version into 6 digit…

---

_[View the full topic](https://forums.ankiweb.net/t/tag-statistics-official-support/20930)._
