I have a function defined like this:
def func(self, boolVal):
and I want to create a connection between QPushButton() and this function like this:
self.button1.clicked.connect(partial(self.func, False))
when I run this, it tells me that func() takes exactly 2 arguments (3 given)
anyone knows why this could happened?
eventparameter to the function. You could check by allowing for a third parameter and printing it.self.button.clicked.connect(lambda: self.func(False))?