def loaded_api():
 if ('PyQt4.QtCore' in sys.modules):
  if (qtapi_version() == 2):
   return QT_API_PYQT
  else:
   return QT_API_PYQTv1
 elif ('PySide.QtCore' in sys.modules):
  return QT_API_PYSIDE
 elif ('PySide2.QtCore' in sys.modules):
  return QT_API_PYSIDE2
 elif ('PyQt5.QtCore' in sys.modules):
  return QT_API_PYQT5
 return None

def loaded_api ( ) : if ( 'PyQt4.QtCore' in sys . modules ) : if ( qtapi_version ( ) == 2 ) : return QT_API_PYQT else : return QT_API_PYQTv1 elif ( 'PySide.QtCore' in sys . modules ) : return QT_API_PYSIDE elif ( 'PySide2.QtCore' in sys . modules ) : return QT_API_PYSIDE2 elif ( 'PyQt5.QtCore' in sys . modules ) : return QT_API_PYQT5 return None
return which api is loaded .