[PyQt] Issue with pyqtSignal

Detlev Offenbach detlev at die-offenbachs.de
Sat Nov 5 09:05:45 GMT 2011


Am 04.11.2011 um 18:04 schrieb Phil Thompson:

> On Fri, 4 Nov 2011 11:23:07 +0100, Detlev Offenbach
> <detlev at die-offenbachs.de> wrote:
>> Hello,
>> 
>> I am defining a signal in one of my classes like this.
>> 
>>    tabRelocateRequested = pyqtSignal(int, int, int)
>> 
>> When this signal is emitted, the first parameter is bigger than an int
>> (e.g. by using id()). This causes the signal receiver to get a first
>> parameter, that is different to the value given in the emit call. How
> can I
>> correct my code (code i within eric4/5).
> 
> Use long instead of int?

Python3 (forgot to mention that) doesn't know about long anymore. Maybe the pyqtSignal code should work with long instead of int?

Detlev

> 
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
detlev at die-offenbachs.de





More information about the PyQt mailing list