[PyQt] New style signal connect not working
Baz Walter
bazwal at ftml.net
Mon Jan 11 16:52:07 GMT 2016
On 11/01/16 16:16, Jannis Mainczyk wrote:
> I have the exact same problem. Sadly the pyqtSlot() decorator
> did not solve it.
>
> Here is the Slot Definition
> @pyqtSlot()
> def update(self):
> try:
>
> Here is the Signal Definition:
> new_mh_added = pyqtSignal()
>
> And here is the Connection:
> self.Data.new_mh_added.connect(PlotListWidgets.update)
>
> The following error is raised:
> TypeError: update() missing 1 required
> positional argument: 'self'
>
> Is that a bug or am I missing something here?
self.Data.new_mh_added.connect(self.update)
More information about the PyQt
mailing list