You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
704 B

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