I am working on an PYQT5 interface, with a QPushButton supposed to call a slot function, which has default arguments.
self.button = QtWidgets.QPushButton("Button")
self.button.clicked.connect(self.doSomething)
def doSomething(self, boolVariable = True):
print(boolVariable)
Result when I run doSomething function:
[in] object_instance.doSomething()
--> True
but if I click on the button, I get this result:
--> False
Can someone explain me why the default argument isn't taken into account ?
Thank you !