I am no PyQt expert, but in C++, you would need an instance of the ChangeSignals class as an argument of the connect() statement. Otherwise, how does connect() know which instance of the signalling class to connect to? Signals aren't broadcast, there must be explicit signal-slot or signal-signal connections between instances of the classes on each end. The only argument you supply is your signal_handler slot (and I assume that in PyQt connect() defaults the SignalWatchers instance on the receiving end (slot) to "self").#ChangeSignals.increase.connect(self.signal_handle r)
Bookmarks