PyQt5 support in Matplotlib

My pull-request for matplotlib to add PyQt5 support has been accepted and merged, meaning PyQt5 support will be available in the upcoming v1.4.0 release of matplotlib.

Based off original work by @badders this re-implements the Qt backend structure as Qt5-first, with Qt4 wrappers for compatibility. It's hoped that this will simplify things going forward, keeping the latest API cleanest with minimal code-cruft.

Thanks to the matplotlib team for the support in getting the PR up to scratch.

Create GUI Applications with Python & Qt6
The easy way to create desktop applications

My complete guide, updated for 2021 & PyQt6. Everything you need build real apps.

Downloadable ebook (PDF, ePub) & Complete Source code

To support developers in [[ countryRegion ]] I give a [[ localizedDiscount[couponCode] ]]% discount on all books and courses.

[[ activeDiscount.description ]] I'm giving a [[ activeDiscount.discount ]]% discount on all books and courses.

Continue reading

Q&A: How to fix widgets appearing as separate windows?  PyQt

One very common issue when you start creating GUI applications with Python & Qt is having your widgets either disappear or start popping out of your interface as independent windows. This is pretty confusing if you don't understand why it happens, but once you do it's usually very easy to fix … More