Commit f3e9af72 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Switch to hard-coded Qt5 matplotlib backend

Mixing Qt4/Qt5 could be dangerous in the same process
parent b1e86cd3
......@@ -5,7 +5,7 @@
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
from qtpy import QtGui
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
class myToolbar(NavigationToolbar):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment