# i am unable to run this code please help me to get out of this problem

from tkinter import *

root = Tk()

text1 = Label(root, text="hii this is a label tag")
text1.pack()


def printName(event, txt):
print(txt)


button = Button(root, text="press this")
button.bind("", printName("ravi"))
button.pack()

root.mainloop()