()
Initialise PySide
Initialise PySide
Initialise PySide
def _pyside():
    """Initialise PySide"""

    import PySide as module
    extras = ["QtUiTools"]
    try:
        try:
            # Before merge of PySide and shiboken
            import shiboken
        except ImportError:
            # After merge of PySide and shiboken, May 2017
            from PySide import shiboken
        extras.append("shiboken")
    except ImportError:
        pass

    _setup(module, extras)
    Qt.__binding_version__ = module.__version__

    if hasattr(Qt, "_shiboken"):
        Qt.QtCompat.wrapInstance = _wrapinstance
        Qt.QtCompat.getCppPointer = _getcpppointer
        Qt.QtCompat.delete = shiboken.delete

    if hasattr(Qt, "_QtUiTools"):
        Qt.QtCompat.loadUi = _loadUi

    if hasattr(Qt, "_QtGui"):
        setattr(Qt, "QtWidgets", _new_module("QtWidgets"))
        setattr(Qt, "_QtWidgets", Qt._QtGui)
        if hasattr(Qt._QtGui, "QX11Info"):
            setattr(Qt, "QtX11Extras", _new_module("QtX11Extras"))
            Qt.QtX11Extras.QX11Info = Qt._QtGui.QX11Info

        Qt.QtCompat.setSectionResizeMode = Qt._QtGui.QHeaderView.setResizeMode

    if hasattr(Qt, "_QtCore"):
        Qt.__qt_version__ = Qt._QtCore.qVersion()

    _reassign_misplaced_members("PySide")
    _build_compatibility_members("PySide")
def _pyside ( ) : import PySide as module extras = [ "QtUiTools" ] try : try : # Before merge of PySide and shiboken import shiboken except ImportError : # After merge of PySide and shiboken, May 2017 from PySide import shiboken extras . append ( "shiboken" ) except ImportError : pass _setup ( module , extras ) Qt . __binding_version__ = module . __version__ if hasattr ( Qt , "_shiboken" ) : Qt . QtCompat . wrapInstance = _wrapinstance Qt . QtCompat . getCppPointer = _getcpppointer Qt . QtCompat . delete = shiboken . delete if hasattr ( Qt , "_QtUiTools" ) : Qt . QtCompat . loadUi = _loadUi if hasattr ( Qt , "_QtGui" ) : setattr ( Qt , "QtWidgets" , _new_module ( "QtWidgets" ) ) setattr ( Qt , "_QtWidgets" , Qt . _QtGui ) if hasattr ( Qt . _QtGui , "QX11Info" ) : setattr ( Qt , "QtX11Extras" , _new_module ( "QtX11Extras" ) ) Qt . QtX11Extras . QX11Info = Qt . _QtGui . QX11Info Qt . QtCompat . setSectionResizeMode = Qt . _QtGui . QHeaderView . setResizeMode if hasattr ( Qt , "_QtCore" ) : Qt . __qt_version__ = Qt . _QtCore . qVersion ( ) _reassign_misplaced_members ( "PySide" ) _build_compatibility_members ( "PySide" )