Is there a way to disable an entry field and yet still see the value in it? For Tkinter.
Yeh. I know how to disable the entry but when it's disabled, I still need to see the value in the entry field.
This works
import tkinter as tk
root = tk.Tk()
en = tk.Entry(root)
en.insert(0, 'some text here')
en.configure(state=tk.DISABLED)
en.pack()
root.mainloop()
On a side note you can change the foreground and background colors in the configure
en.configure(state='tk.DISABLED', disabledbackground='white', disabledforeground='red')