Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01c73b4 + b0112a4 commit 6ea5e35Copy full SHA for 6ea5e35
1 file changed
examples/user_interfaces/embedding_in_qt5.py
@@ -17,7 +17,7 @@
17
import matplotlib
18
# Make sure that we are using QT5
19
matplotlib.use('Qt5Agg')
20
-from PyQt5 import QtGui, QtCore, QtWidgets
+from PyQt5 import QtCore, QtWidgets
21
22
from numpy import arange, sin, pi
23
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
@@ -117,8 +117,8 @@ def closeEvent(self, ce):
117
self.fileQuit()
118
119
def about(self):
120
- QtGui.QMessageBox.about(self, "About",
121
- """embedding_in_qt5.py example
+ QtWidgets.QMessageBox.about(self, "About",
+ """embedding_in_qt5.py example
122
Copyright 2005 Florent Rougon, 2006 Darren Dale, 2015 Jens H Nielsen
123
124
This program is a simple example of a Qt5 application embedding matplotlib
0 commit comments