From 73bc177ade48823688c1a4ff073481c0af6c78f6 Mon Sep 17 00:00:00 2001 From: Ulrich Eck Date: Mon, 27 Feb 2017 12:56:53 +0100 Subject: [PATCH] add QtOpenGL wrapper for qtpy --- qtpy/QtOpenGL.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 qtpy/QtOpenGL.py diff --git a/qtpy/QtOpenGL.py b/qtpy/QtOpenGL.py new file mode 100644 index 00000000..ef62171a --- /dev/null +++ b/qtpy/QtOpenGL.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# ----------------------------------------------------------------------------- +# Copyright © 2009- The Spyder Development Team +# +# Licensed under the terms of the MIT License +# (see LICENSE.txt for details) +# ----------------------------------------------------------------------------- +"""Provides QtOpenGL classes and functions.""" + +# Local imports +from . import PYQT4, PYQT5, PYSIDE, PythonQtError + +if PYQT5: + from PyQt5.QtOpenGL import * +elif PYQT4: + from PyQt4.QtOpenGL import * +elif PYSIDE: + from PySide.QtOpenGL import * +else: + raise PythonQtError('No Qt bindings could be found') + +del PYQT4, PYQT5, PYSIDE