Skip to content

Commit

Permalink
pyside6: fix QtOpenGLWidget import
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Nov 22, 2024
1 parent 85dffc6 commit e81c5f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion pivy/qt/QtOpenGL/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
try:
from PySide6.QtOpenGL import *
from PySide6.QtOpenGLWidgets import QOpenGLWidget
from PySide6.QtOpenGLWidgets import QOpenGLWidget as QGLWidget
except ImportError:
from PySide2.QtOpenGL import *
from PySide2.QtOpenGL import *
from PySide2.QtWidgets import QOpenGLWidget
5 changes: 1 addition & 4 deletions pivy/quarter/QuarterWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@
"""

from pivy.qt import QtCore, QtGui, QtOpenGL
from pivy.qt.QtOpenGL import QOpenGLWidget

try:
from pivy.qt.QtOpenGLWidgets import QOpenGLWidget
except ImportError:
from pivy.qt.QtWidgets import QOpenGLWidget

from pivy import coin

Expand Down

0 comments on commit e81c5f3

Please sign in to comment.