Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

textinput

kivy

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:""
like image 641
Mike Delta Avatar asked Apr 12 '18 07:04

Mike Delta


People also ask

How do I make a text input non-editable for a part of it?

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.

How do you make text non-editable?

The read-only attribute in HTML is used to create a text input non-editable.

What is KIVY TextInput?

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.


1 Answers

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 
like image 149
Yoav Glazner Avatar answered Sep 19 '22 09:09

Yoav Glazner