Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd code found for PyQt5 in tests/conftest.py: always raises an exception #504

Open
StSav012 opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@StSav012
Copy link
Contributor

Shouldn't there be QtCore instead of just Qt?

try:
from PyQt5 import Qt
versions += f"PyQt: {Qt.PYQT_VERSION_STR} - Qt: {Qt.QT_VERSION_STR}"
except ImportError:

For PyQt6, it is so:

try:
from PyQt6 import QtCore
versions += (
f"PyQt: {QtCore.PYQT_VERSION_STR} - Qt: {QtCore.QT_VERSION_STR}"
)
except ImportError:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant