[PyQt] Mysterious type error: with example script now
Hans-Peter Jansen
hpj at urpla.net
Sun May 14 12:53:34 BST 2017
Hi Gottfried,
On Sonntag, 14. Mai 2017 10:20:14 Gottfried Müller wrote:
> and additional informations: I am using Manjaro with python 3.6.1, qt5
> 5.8.0, pyqt5 5.8.2. With the simple script in the attachment I get the
> type error at my computer.
While I cannot offer a fix for the obvious issue in pyqtSignal, I can offer a
workaround. See attached script.
It is slightly modified in order to test with Python2 as well...
One remark: triggering the signal in the constructor of your Viewer class is
related to testing, I guess. I would consider this a source of trouble for
production code, given, it triggers before the signal handler is connected...
Cheers,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dictPyqtSignal2.py
Type: text/x-python
Size: 1020 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170514/79ecc502/attachment.py>
More information about the PyQt
mailing list