#NEWLINE# def _load_pyqt5( ) : #NEWLINE# #INDENT# prepare_pyqt5 ( ) #NEWLINE# from PyQt5 import QtCore , QtGui , QtTest , QtWidgets #NEWLINE# from distutils.version import LooseVersion #NEWLINE# QtCore . Signal = QtCore . pyqtSignal #NEWLINE# QtCore . Slot = QtCore . pyqtSlot #NEWLINE# QtCore . Property = QtCore . pyqtProperty #NEWLINE# for widget in dir ( QtWidgets ) : #NEWLINE# #INDENT# if widget . startswith ( 'Q' ) : #NEWLINE# #INDENT# setattr ( QtGui , widget , getattr ( QtWidgets , QT_API ) ) #NEWLINE# #UNINDENT# #UNINDENT# QtGui . QItemSelection = QtCore . QItemSelection #NEWLINE# QtGui . QItemSelectionModel = QtCore . QItemSelectionModel #NEWLINE# QtGui . QSortFilterProxyModel = QtCore . QSortFilterProxyModel #NEWLINE# register_module ( QtCore , 'QtCore' ) #NEWLINE# register_module ( QtGui , 'QtGui' ) #NEWLINE# register_module ( QtTest , 'QtTest' ) #NEWLINE# global QT_API #NEWLINE# QT_API = QT_API_PYQT5 #NEWLINE# _import_hook . deny_module ( 'PySide' ) #NEWLINE# _import_hook . deny_module ( 'PyQt4' )