I have the next line of code to create entry text inputs in python:
globals()[f"dv_{key}_{subkey}"] = tk.Entry(self.root, width=250)
That text create input texts to enter data as shown in photo:
I want to make only readable then I entered the command as this:
globals()[f"dv_{key}_{subkey}"] = tk.Entry(self.root, width=250, state='disabled')
Of course it does the job so you can’t input text hat is what I want, the problem is the text they have disappear as shown in photo:
How can i make to make readable only but that they show the real values the had before i entered the state='disabled'?
source https://stackoverflow.com/questions/75709190/python-entry-text-make-readable-only


Comments
Post a Comment