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 17
17
import matplotlib
18
18
# Make sure that we are using QT5
19
19
matplotlib .use ('Qt5Agg' )
20
- from PyQt5 import QtGui , QtCore , QtWidgets
20
+ from PyQt5 import QtCore , QtWidgets
21
21
22
22
from numpy import arange , sin , pi
23
23
from matplotlib .backends .backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
@@ -117,8 +117,8 @@ def closeEvent(self, ce):
117
117
self .fileQuit ()
118
118
119
119
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
122
122
Copyright 2005 Florent Rougon, 2006 Darren Dale, 2015 Jens H Nielsen
123
123
124
124
This program is a simple example of a Qt5 application embedding matplotlib
You can’t perform that action at this time.
0 commit comments