blob: 2727fbc7e785bda52d60d1244923b52cbd6ae9e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
PyQt4/PyQt5 compatibility layer.
Features:
* At the top level AnyQt exports a Qt5 compatible module namespace along with
some minimal renames to better support portability between different versions
* Which Qt api/backend is chosen can be controlled by a QT_API env variable
* The api can be chosen/forced programmatically (as long as no
PyQt4/PyQt5/PySide was already imported)
* Provides an optional compatibility import hook, that denys imports from
conflicting Qt api, or intercepts and fakes a Qt4 api imports, to use a Qt5
compatible API (some monkey patching is involved).
WWW: https://github.com/ales-erjavec/anyqt
|