My question is related to my previous one from this topic: Decorator adds an unexpected argument
The problem is that if I create more methods with the same set of decorator, every signal calls the same one, what is kind of weird. Example below:
signal_1.connect(fun_1)
signal_2.connect(fun_2)
@pyqtSlot()
@handle_exceptions
def fun_1():
print('aaaaa')
@pyqtSlot()
@handle_exceptions
def fun_2():
print('bbbbb')
signal_1.emit()
signal_2.emit()
Output:
aaaaa
aaaaa