diff --git a/examples/user_interfaces/embedding_in_qt5.py b/examples/user_interfaces/embedding_in_qt5.py index 6f35d7745d3b..2b987c18b48b 100755 --- a/examples/user_interfaces/embedding_in_qt5.py +++ b/examples/user_interfaces/embedding_in_qt5.py @@ -17,7 +17,7 @@ import matplotlib # Make sure that we are using QT5 matplotlib.use('Qt5Agg') -from PyQt5 import QtGui, QtCore, QtWidgets +from PyQt5 import QtCore, QtWidgets from numpy import arange, sin, pi from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas @@ -117,8 +117,8 @@ def closeEvent(self, ce): self.fileQuit() def about(self): - QtGui.QMessageBox.about(self, "About", - """embedding_in_qt5.py example + QtWidgets.QMessageBox.about(self, "About", + """embedding_in_qt5.py example Copyright 2005 Florent Rougon, 2006 Darren Dale, 2015 Jens H Nielsen This program is a simple example of a Qt5 application embedding matplotlib