mgrady3 / pLEASE-legacy

python Low Energy Electron Analysis SuitE
GNU General Public License v3.0
3 stars 2 forks source link

Update to use PyQt5 / Qt5 #4

Open mgrady3 opened 7 years ago

mgrady3 commented 7 years ago

Eventually PyQt4 and Qt4 will be deprecated. The conversion from PyQt4 to PyQt5 is certainly non trivial.

Work as been completed so far on Linux getting a small subset of functionality working. This involves reconfiguring much of the Signal/Slot configuration that happens when a new thread needs to be started.

I have experienced trouble using the Anaconda installed version of PyQt5 but have successfully gotten the program to run on Linux using a fresh virtualenvironment linked to python3.5.2 (non-Anaconda) with a manual install of Qt5.7 and PyQt5.

mgrady3 commented 7 years ago

The branch dev_PyQt5 has been updated with a codebase that seems to work on Ubuntu 16.0.4, Window 10, and OS X.11.4 with PyQt5.7.

However there is a bug with the menubar on OS X where you have to shift focus to another app then back to the PyQt app to get the menubar to be clickable.

An email has been placed to the PyQt mailing list with a minimal working example to reproduce this bug.

mgrady3 commented 7 years ago

Major feature updates from master branch now merged into PyQt5 branch

Anaconda has seemingly moved to including PyQt5 as the default version that comes with the installation. Thus, now more than ever its crucial to have the codebase working with PyQt5. PyQt4 can still be installed manually from Riverbank Computing, however, the explanation of how to do so is quite convoluted and hard to include in the installation instructions for this Application.