8000 Merge pull request #6124 from estan/qt5-example-fixes · matplotlib/matplotlib@6ea5e35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ea5e35

Browse files
committed
Merge pull request #6124 from estan/qt5-example-fixes
Fix about dialog on Qt 5
2 parents 01c73b4 + b0112a4 commit 6ea5e35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/user_interfaces/embedding_in_qt5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import matplotlib
1818
# Make sure that we are using QT5
1919
matplotlib.use('Qt5Agg')
20-
from PyQt5 import QtGui, QtCore, QtWidgets
20+
from PyQt5 import QtCore, QtWidgets
2121

2222
from numpy import arange, sin, pi
2323
from 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
122122
Copyright 2005 Florent Rougon, 2006 Darren Dale, 2015 Jens H Nielsen
123123
124124
This program is a simple example of a Qt5 application embedding matplotlib

0 commit comments

Comments
 (0)
0