question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't delete QtCore.{pyqtSignal,pyqtSlot,pyqtProperty}

See original GitHub issue

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 https://github.com/spyder-ide/qtpy/pull/47 with IMHO not so great justification:

I still think that the duplicate imports are very weird and not needed

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kernccommented, Sep 29, 2016

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.

0reactions
ccordoba12commented, Aug 25, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name pyqtSignal? - Stack Overflow
You're using qtpy rather than PyQt4 directly. According to Don't delete QtCore.{pyqtSignal,pyqtSlot,pyqtProperty} · Issue #76 ...
Read more >
Python Examples of PyQt5.QtCore.pyqtSlot - ProgramCreek.com
The following are 30 code examples of PyQt5.QtCore.pyqtSlot(). You can vote up the ones you like or vote down the ones you don't...
Read more >
PyQt5 Signals, Slots and Events - Python GUIs
Signals (and slots) allow you to connect disparate parts of your application together, making changes in one component trigger behavior in ...
Read more >
python_qt_binding: binding_helper.py Source File
pyqtSlot. 160 sys.modules['QtCore'].Property = sys.modules['QtCore'].pyqtProperty ... 218 # don't create the top-level widget, if a base instance is set.
Read more >
PyQt v4 - Python Bindings for Qt v4 - FTP Directory Listing
pyqtSignal (); 7.3 Connecting, Disconnecting and Emitting Signals; 7.4 Connecting Signals Using Keyword Arguments; 7.5 The QtCore.pyqtSlot() Decorator.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found