
from tkinter import *

def amresh(event):
    print(f"You clicked on the button at {event.x}, {event.y}")

root = Tk()
root.title("Events in Tkinter")
root.geometry("644x334")

widget = Button(root, text='Click me please')
widget.pack()

widget.bind('', amresh)
widget.bind('', quit)

root.mainloop()
