-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Don't delete QtCore.{pyqtSignal,pyqtSlot,pyqtProperty} #76
Comments
That way it's expected that your application runs seamlessly when you move from PyQt to PySide. If you use instead |
The README doesn't claim to be PyQt5 compatible. It uses the PyQt5 layout for modules (other abstraction modules import everything into both QtGui and QtWidgets for example). On the other hand we agree that the documentation is lacking, see #61. |
Equivalently, you could import PySide's Signal: from PySide.QtCore import Signal as pyqtSignal Furthermore, you could agnostically: if PYQT5:
from PyQt5.QtCore import *
Signal, Slot, Property = pyqtSignal, pyqtSlot, pyqtProperty
if PYSIDE:
from PySide.QtCore import *
pyqtSignal, pyqtSlot, pyqtProperty = Signal, Slot, Property and avoid tensions to force the user to write their software in a certain way. PySide folks, at least, seem to acknowledge this. |
@Nodd, your final thoughts on this? You were the one who proposed #47 :-) I'm -0.5 on the idea because (as I said) I'd prefer projects use the more generic |
I don't think we will have much problem switching to Signals and Slots here. There just isn't a reason to enforce a particular style someone randomly decided upon when working to convenience the user can prove as fruitful and, in this case, so effortless. |
Hi @kernc just to update here,
Its not really random, the thing is that we follow the Qt5 layout (not the PyQt5 layout) so we need to update the readme. Since having PyQtSignal was PyQt5 specific, that is why we decided to remove it. PySide (and eventually PySide2) will use Signal and Slot (which feels much better). We can re-add them if that would make the use of QtPy in orange easier... (but I still think using Signal and Slot to be better than PyQtSignal and PyQtSlot) |
This is somehow related to #115 |
Yep, this is now updated, we should close |
not use spyder, just want to use PyQt4, PyQt5 compatible, if you delete pyqtSignal and pyqtSlot and use SIgnal/Slot in spyder way, why not rename the project to spyder-qt ? |
Where in this discussion do we say that we decided to use Signal and Slot due to Spyder? The only mention to Spyder is yours. |
all things from qt comes from the qtpy abstraction layer renamed calls to pyqtSignal/Slot to Signal/Slot as stated in spyder-ide/qtpy#76 QtreeWidgetItem loaded from QtWidgets package
The README says the API is PyQt5 compatible, yet the PyQt5 identifiers such as
QtCore.pyqtSignal
are explicitly deleted in favor of PySide's.PyQt5's symbols were removed in #47 with IMHO not so great justification:
The text was updated successfully, but these errors were encountered: