Skip to content

Instantly share code, notes, and snippets.

@git-ha
git-ha / opengl_tutorial.py
Created May 3, 2022 14:52
PySide2 & OpenGL sample
"""PySide2 & OpenGL sample"""
import sys
from PySide2 import QtCore, QtWidgets, QtOpenGL
try:
from OpenGL.GL import *
except ImportError:
app = QtWidgets.QApplication(sys.argv)