Skip to content

Commit

Permalink
Merge pull request #102 from ulricheck/master
Browse files Browse the repository at this point in the history
PR: Add a new QtOpenGL module
  • Loading branch information
ccordoba12 committed May 5, 2017
2 parents 915dcc7 + 73bc177 commit 8cb3528
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions qtpy/QtOpenGL.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8cb3528

Please sign in to comment.