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.

22 lines
652 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 QtOpenGL classes and functions."""
  9. # Local imports
  10. from . import PYQT4, PYQT5, PYSIDE, PythonQtError
  11. if PYQT5:
  12. from PyQt5.QtOpenGL import *
  13. elif PYQT4:
  14. from PyQt4.QtOpenGL import *
  15. elif PYSIDE:
  16. from PySide.QtOpenGL import *
  17. else:
  18. raise PythonQtError('No Qt bindings could be found')
  19. del PYQT4, PYQT5, PYSIDE