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?