Kivy:如何进行不可编辑的文本输入?

时间:2018-04-12 07:32:05

标签: kivy textinput

如何使用户无法编辑文本输入?

TextInput:
    id:out
    background_color: (0, 0, 0, 1)
    foreground_color: (0, 1, 0, 1)
    multiline: True
    text:""

1 个答案:

答案 0 :(得分:1)

readonly属性是你的朋友

TextInput:
    id:out
    background_color: (0, 0, 0, 1)
    foreground_color: (0, 1, 0, 1)
    multiline: True
    text:""
    readonly: True 
相关问题