jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
362 stars 59 forks source link

Change from qt4 to qt5 #45

Closed TheOtherNeo closed 6 years ago

TheOtherNeo commented 6 years ago

Probably not that important, but when setting up the required libraries to run the GUI examples I noticed on the Python page that qt4 is no longer supported, so I only loaded qt5.

To make the camera-config-gui.py and camera-config-gui-oo.py examples to work, I changed the imports to the following: from PyQt5 import QtCore, QtWidgets from PyQt5.QtCore import Qt ...and changed all references of QtGui to QtWidgets.

This seems to have done the trick.

jim-easterbrook commented 6 years ago

You're right, it's probably time to drop Qt4. I don't expect all the examples to work straight out of the box for all users, and it can be a bit of a guessing game knowing what packages are most widely installed.

jim-easterbrook commented 6 years ago

This is fixed in commit ebf766c.