File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717import matplotlib
1818# Make sure that we are using QT5
1919matplotlib .use ('Qt5Agg' )
20- from PyQt5 import QtGui , QtCore , QtWidgets
20+ from PyQt5 import QtCore , QtWidgets
2121
2222from numpy import arange , sin , pi
2323from matplotlib .backends .backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
@@ -117,8 +117,8 @@ def closeEvent(self, ce):
117117 self .fileQuit ()
118118
119119 def about (self ):
120- QtGui .QMessageBox .about (self , "About" ,
121- """embedding_in_qt5.py example
120+ QtWidgets .QMessageBox .about (self , "About" ,
121+ """embedding_in_qt5.py example
122122Copyright 2005 Florent Rougon, 2006 Darren Dale, 2015 Jens H Nielsen
123123
124124This program is a simple example of a Qt5 application embedding matplotlib
You can’t perform that action at this time.
0 commit comments