[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:
parent
a0abed7909
commit
3288783654
@ -25,7 +25,7 @@ except ImportError:
|
|||||||
import matplotlib
|
import matplotlib
|
||||||
from matplotlib.figure import Figure
|
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 FigureCanvasQTAgg as FigureCanvas
|
||||||
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
|
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user