from tkinter import Tk from tkinter import Entry from tkinter.font import Font def result(e): print(ent.get()) gyoker = Tk() hevl36 = Font(family="Helvetica", size=30, weight="bold") ent = Entry(gyoker, width=25) ent.insert(0,"Valami szöveg") ent.config(bg="#ffeeff", fg="#ff0000", bd=25, cursor="clock", font=hevl36) ent.bind('', result) ent.pack() gyoker.mainloop()