From 3288783654d1a7c62eba3351c871cf76247afb13 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Mon, 7 Nov 2022 17:14:02 +0100 Subject: [PATCH] [minor] bugfix, fixed startup with PySide6 * added PySide6 to the list of possible QtGui.__package__ values TODO: fix deprecation warnings when running with PySide6 --- survBotGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survBotGUI.py b/survBotGUI.py index 0c53b4d..adb5146 100755 --- a/survBotGUI.py +++ b/survBotGUI.py @@ -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: