ALBA-Synchrotron / IcepapOSC

GNU General Public License v3.0
0 stars 8 forks source link

Fix QStyleOptionButton and QStyle import #23

Closed beenje closed 2 years ago

beenje commented 2 years ago

QStyleOptionButton and QStyle should be imported from the QtWidgets module. In pyqt 5.6.0, they could be imported from both QtGui and QtWidgets but in 5.12.3, they aren't in QtGui anymore.

Fix #22

pyqt 5.6.0 is the oldest PyQt5 available on conda-forge, so I haven't tested with older versions. If you think there is a risk that those classes need to be imported from QtGui on other versions, we could use a try... except ImportError but I think we should have a version where we can show the problem.

Which version of PyQt5 are you using?