How to disable text input after user finish input?

how to disable text input after user finish input?
now use disabled=True will make input unavailable before user input something.
Thank you.