-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add a check_compatibility method to PluginMixin #4641
Comments
I was thinking that in some cases, this function might be not called at all, for example, on Spyder Terminal we don't even expose the Plugin at all if the current Qt backend if different from |
in that case maybe we dont need such method ? |
Maybe, it should be defined on each plugin's |
What I don't like here, is that we have an orphan PLUGIN_CLASS, I would make it from qtpy import PYQT5
PLUGIN_CLASS = None
if PYQT5:
from .terminalplugin import TerminalPlugin as PLUGIN_CLASS |
To be changed on 3.1.2! |
@andfoy, the idea is to make changes in So its compatibility is to depend on PyQt5. |
In the case of spyder-terminal check for Qt4 and build a message accordingly |
So should we remove that try... except block instead? |
Probably |
Yes, that's the idea, and use But @goanpeca, then |
Sorry, https://github.com/spyder-ide/spyder/blob/3.x/spyder/plugins/__init__.py#L539 That way it will be run every time a plugin is created. @dalthviz, please add the |
On 3.x
https://github.com/spyder-ide/spyder/blob/master/spyder/api/plugins.py
Create a new method for
class SpyderPluginWidget(PluginWidget):
On top of this we need to change the loading of plugins to load it only if compatible
@ccordoba12, @andfoy, @rlaverde comments, ideas?
The text was updated successfully, but these errors were encountered: