Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f26e04a

Browse files
committed
Add link explaning change between qt4 and qt5
1 parent 0eb8099 commit f26e04a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ def __init__(self, figure):
234234
# NB: Using super for this call to avoid a TypeError:
235235
# __init__() takes exactly 2 arguments (1 given) on QWidget
236236
# PyQt5
237+
# The need for this change is documented here
238+
# http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html#cooperative-multi-inheritance
237239
super(FigureCanvasQT, self).__init__(figure=figure)
238240
self.figure = figure
239241
self.setMouseTracking(True)

0 commit comments

Comments
 (0)