-
Notifications
You must be signed in to change notification settings - Fork 74
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
silx.gui: Added support for QT_API
environment variable
#3981
Conversation
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.
If silx choses the binding, QtPy and matplotlib should be informed to prevent warnings.
(Sorry, I did not manage to propose the changes and I committed directly)
There is no need to set/change the environment variable, both qtpy and matplotlib first check for already imported bindings, so I would prefer not to change the env. var. If it is fine for you, I would revert your change.
|
There is no need, but I was so annoyed of seeing the warning "selected binding pyqt5 could not be found, using pyside6" that I did not realize the warning seems to have been removed in recent versions. You can revert my commit if you wish. |
Done |
Thank you @t20100! I tested it and it works as expected. |
This PR adds support for selecting the Qt binding with
QT_API
env. var. (case-insensitive) the same way as matplotlib and close to qtpy - which is case sensitive.