Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81541

Re: Fwd: Python Signal/Slot + QThred code analysis

Date 2014-11-25 20:15 -0700
From Michael Torrie <torriem@gmail.com>
Subject Re: Fwd: Python Signal/Slot + QThred code analysis
References (4 earlier) <5474A333.2090207@mrabarnett.plus.com> <CAAp0bGsGLsWoXQnqFYN3KLeUsmcD5ujF80sasM16wx70zQ1xUA@mail.gmail.com> <CAAp0bGvhhWcLO76UQ+nXZuhazjJr9wsjwBkuCX78O4K=em9wuQ@mail.gmail.com> <5474C889.5090503@mrabarnett.plus.com> <CAAp0bGtv13QaPhfTx+tzSe6ZpQ9RCLiWrG1Cv+qfEw3JZ41o9g@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16305.1416971743.18130.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fwd: Python Signal/Slot + QThred code analysis Michael Torrie <torriem@gmail.com> - 2014-11-25 20:15 -0700

csiph-web