mgear.vendor.Qt module
Minimal Python 2 & 3 shim around all Qt bindings
- DOCUMENTATION
Qt.py was born in the film and visual effects industry to address the growing need for the development of software capable of running with more than one flavour of the Qt bindings for Python - PySide, PySide2, PyQt4 and PyQt5.
Build for one, run with all
Explicit is better than implicit
Support co-existence
- Default resolution order:
PySide2
PyQt5
PySide
PyQt4
- Usage:
>> import sys >> from Qt import QtWidgets >> app = QtWidgets.QApplication(sys.argv) >> button = QtWidgets.QPushButton(“Hello World”) >> button.show() >> app.exec_()
All members of PySide2 are mapped from other bindings, should they exist. If no equivalent member exist, it is excluded from Qt.py and inaccessible. The idea is to highlight members that exist across all supported binding, and guarantee that code that runs on one binding runs on all others.
For more details, visit https://github.com/mottosso/Qt.py
LICENSE
See end of file for license (MIT, BSD) information.