Hi, > As I said it disables it correctly, but uses mainloop() to handle > the input. Without it it doesn't input the text in the paper > after pressing Enter.
it should certainly be possible to write a handler that does this without a second mainloop. Not sure what causes the problem, maybe it is similar to this example? from Tkinter import * root = Tk() e = Entry(root) e.pack(padx=100, pady=100) e.insert('end', 'foo') def test(event=None): print(e.get()) e.bind('<Return>', test) e.configure(state='disabled') root.mainloop() If yes, it might help to either change the Entry's state to "readonly" or to add a binding for the root window, as in root.bind('<Return>', test) I am aware that your program is way more complex than this tiny example, so setting this up might require considerable efforts, but it's certainly worth it. Multiple mainloops are definitely evil. Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. A father doesn't destroy his children. -- Lt. Carolyn Palamas, "Who Mourns for Adonais?", stardate 3468.1. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss