QtNetwork.py 560 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright © 2014-2015 Colin Duquesnoy
  4. # Copyright © 2009- The Spyder Development Team
  5. #
  6. # Licensed under the terms of the MIT License
  7. # (see LICENSE.txt for details)
  8. """
  9. Provides QtNetwork classes and functions.
  10. """
  11. from . import PYQT5, PYSIDE2, PYQT4, PYSIDE, PythonQtError
  12. if PYQT5:
  13. from PyQt5.QtNetwork import *
  14. elif PYSIDE2:
  15. from PySide2.QtNetwork import *
  16. elif PYQT4:
  17. from PyQt4.QtNetwork import *
  18. elif PYSIDE:
  19. from PySide.QtNetwork import *
  20. else:
  21. raise PythonQtError('No Qt bindings could be found')