forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement backend for PyQt5 + modify Qt4 backend to Qt5 structure.
A backend for PyQt5 based on intial work by @badders, modified to fix Qt5 mouse event handling, then re-structured to implement as a wrapper over the existing Qt4 code. Following discussions on this pull request: matplotlib#2471 The code has been restructured to implement PyQt5 backend as a first-class implementation, with other Qt backends (PyQt4, PyQt4v2, PySide (Qt v4)) wrapping it and modifying as required. The issues of objects being moved around in the Qt namespace (many QtGui objects now in QtWidgets) QtWidgets is simply assigned as a copy of QtGui if not available. This achieves the intended outcome with the minimum code. PySide required re-ordering of import on FigureCanvasQTAgg or paintEvent function would not being called on FigureCanvasQTAggBase resulting in black window. A number of indentation, import and other fixes.
- Loading branch information
Martin Fitzpatrick
committed
May 19, 2014
1 parent
24bc071
commit 4347da0
Showing
16 changed files
with
1,405 additions
and
991 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.