Python Signal for Object Type int[]

88 Views Asked by At

I am trying to make a signal with an integer list ([0,0,0,0,0]) as a parameter. However, this:

class MySignal(QtCore.QObject):
    sig = QtCore.Signal(int[])

does not work. What else should I try? Thank you!

EDIT: this is what I'm trying to emit: array('B', [0, 20, 0, 0, 0, 0, 128, 0, 114, 242, 128, 0, 128, 0, 0, 0, 0, 0, 0, 0])

With the suggestions in the comments, I'm now getting this error: sig only accepts 0 arguments, 2 provided. How should I fix this issue?

0

There are 0 best solutions below