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.
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 atry... except ImportError
but I think we should have a version where we can show the problem.Which version of PyQt5 are you using?