-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve error message if qt binding could not be found #205
Conversation
mne_qt_browser/_pg_figure.py
Outdated
from qtpy.QtCore import ( | ||
QEvent, | ||
QThread, | ||
Qt, | ||
Signal, | ||
QRectF, | ||
QLineF, | ||
QPointF, | ||
QPoint, | ||
QSettings, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also just nest one of these imports, then the rest can be as they were before. It'll make the diff
smaller as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments @larsoner
Co-authored-by: Eric Larson <[email protected]>
Co-authored-by: Eric Larson <[email protected]>
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking for merge when green, thanks in advance @timonmerk !
Related to #199, this PR checks before the first qtpy import if the
QtBindingsNotFoundError
exception is thrown. The error message now hints that pyqt5 needs to be installed.