Mike Delta
Mike Delta

Reputation: 808

Kivy: how do I make a non-editable text input?

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

Answers (2)

uak
uak

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

Yoav Glazner
Yoav Glazner

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

Related Questions