[minor] bugfix, fixed startup with PySide6

* added PySide6 to the list of possible QtGui.__package__ values
TODO: fix deprecation warnings when running with PySide6
This commit is contained in:
Kasper D. Fischer 2022-11-07 17:14:02 +01:00
parent a0abed7909
commit 3288783654

View File

@ -25,7 +25,7 @@ except ImportError:
import matplotlib
from matplotlib.figure import Figure
if QtGui.__package__ in ['PySide2', 'PyQt5']:
if QtGui.__package__ in ['PySide2', 'PyQt5', 'PySide6']:
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
else: