How to make a text input non editable by user ?
TextInput:
id:out
background_color: (0, 0, 0, 1)
foreground_color: (0, 1, 0, 1)
multiline: True
text:""
The readonly attribute makes a form control non-editable (or “read only”). A read-only field can't be modified, but, unlike disabled , you can tab into it, highlight it, and copy its contents.
The read-only attribute in HTML is used to create a text input non-editable.
The TextInput widget provides a box for editable plain text. Unicode, multiline, cursor navigation, selection and clipboard features are supported. The TextInput uses two different coordinate systems: (x, y) - coordinates in pixels, mostly used for rendering on screen.
The readonly
property is your friend
TextInput:
id:out
background_color: (0, 0, 0, 1)
foreground_color: (0, 1, 0, 1)
multiline: True
text:""
readonly: True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With