How to pass arguments to functions by the click of button in PyQt? March 25, 2023 by Tarik You can simply write name = "user" button.clicked.connect(lambda: calluser(name))