Reputation: 808
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:""
Upvotes: 10
Views: 4674
Reputation: 333
You can also set the TextInput
field to disabled.
TextInput:
id:out
background_color: (0, 0, 0, 1)
foreground_color: (0, 1, 0, 1)
multiline: True
text:""
disabled: True
check this answer for more information: https://stackoverflow.com/a/45238685/7346913
Upvotes: 0
Reputation: 8041
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
Upvotes: 13