from PyQt5 import Qt, QtCore print(Qt.PYQT_VERSION_STR) print(QtCore.QT_VERSION_STR)