-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
PR: Add check_compatibility for PyQt4 and WebEngine #78
Conversation
spyder_notebook/notebookplugin.py
Outdated
message = '' | ||
value = True | ||
if PYQT4 or WEBENGINE: | ||
message = _("You are working with Qt4 or WebEngine. <br><br>" |
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.
Instead of WebEngine, let's say here
... Qt4 or the PyQt5 wheels.
spyder_notebook/notebookplugin.py
Outdated
if PYQT4 or WEBENGINE: | ||
message = _("You are working with Qt4 or WebEngine. <br><br>" | ||
"In order to make the Notebook plugin work " | ||
"you should update to Qt5 and use WebKit.") |
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.
Also this to
... to Qt5 and/or use Anaconda or Miniconda.
spyder_notebook/notebookplugin.py
Outdated
self.main.add_to_fileswitcher(self, self.tabwidget, self.clients, | ||
QIcon(icon_path)) | ||
self.recent_notebook_menu.aboutToShow.connect(self.setup_menu_actions) | ||
if self.check_compatibility()[0]: |
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.
Is this really necessary? I thought the plugin won't be registered if check_compatibility
is True.
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.
Yep, if not the plugin will be visible, although the message of incompatibility will be also displayed
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.
This is an error in Spyder then. I'll open an issue so you can help me to fix it.
spyder_notebook/notebookplugin.py
Outdated
if PYQT4 or WEBENGINE: | ||
message = _("You are working with Qt4 or the PyQt5 wheels." | ||
"<br><br>In order to make the Notebook plugin " | ||
"work you should update to Qt5 and/or use " |
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.
should
-> need to
spyder_notebook/notebookplugin.py
Outdated
@@ -12,6 +12,8 @@ | |||
import sys | |||
|
|||
# Qt imports | |||
from qtpy import PYQT4 | |||
from qtpy.QtWebEngineWidgets import WEBENGINE |
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.
This import needs to be before the qtpy.QtWidgets
one, so that they are organized alphabetically.
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.
Should I move the import for qtpy.QtCore
and qtpy.compat
too?
Yes, please. Reorganize them so that they come alphabetically.
El 27/06/17 a las 23:26, Daniel Althviz Moré escribió:
…
***@***.**** commented on this pull request.
------------------------------------------------------------------------
In spyder_notebook/notebookplugin.py
<#78 (comment)>:
> @@ -12,6 +12,8 @@
import sys
# Qt imports
+from qtpy import PYQT4
+from qtpy.QtWebEngineWidgets import WEBENGINE
Should I move the import for |qtpy.QtCore| and |qtpy.compat| too?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWS7WOS6MWsOeAztOMtkVVkZUk9ktncks5sIdYNgaJpZM4OHKz1>.
|
Fixes #74