简体   繁体   中英

Insert text to TextInput() in Kivy

Is there a way to insert text to a textinput without overwriting the previous text? Textinput().text = "something" deletes the previous text.I also want to add it everytime in a new line.

It has nothing to do with kivy, these are basics of python language. Instead of overwriting the varliable with = sign, use += to append.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM