Fwd: Python Signal/Slot + QThred code analysis

Michael Torrie torriem at gmail.com
Wed Nov 26 04:15:27 CET 2014

On 11/25/2014 02:36 PM, Juan Christian wrote:
> So guys, I had to change to approach, I read that using Qt I can't do
> multiple inheritance. So my Outpost class can't be like 'Outpost(QObject,
> QThred)'. I had to change the code a bit:
> <snip>
> So, let's see the problems:
> Traceback (most recent call last):
>   File "D:/.../main.py", line 44, in output_slot
>     outpost = Outpost('12345')
>   File "D:\...\outpost.py", line 27, in __init__
>     self.received.emit(worker)
> TypeError: received() only accepts 0 arguments, 2 given!

You're going to have to post a complete, but small, code example, I
think.  Working with fragments of code is very difficult if not
impossible to assist with, resulting in obtuse, obvious replies from folks.

More information about the Python-list mailing list