So I have this very simple thing I wrote and it\'s killing me trying to figure out why it won\'t work. All it does it print a statement when you click.
So for the f
If you refer to the documentation regarding tkinter events and bindings, you will see that when an event is triggered, the associated event object will be passed as the first (and only) argument to the bounded function (being printName1
and friends in your case).
So what you need to do is to modify those printName*
functions to accept the event argument.
def printName1(event):
print('Jack')
Then what you desired to achieve should work.
Naturally, you could make the event
argument optional as @TigerhawkT3 suggested.