Kivy TextInput with autocomplete

二次信任 提交于 2021-01-27 17:22:59

问题


I am new to kivy. I want to know if there is a way to create a textinput with autocomplete functionality, that lets you select from a dictionary with 200 items.

Similar to the select2 that you have in HTML/CSS


回答1:


You can implement it yourself, just bind the on_text event and change the suggestion_text property. you may also check for TAB key press event to know when to change the text to the suggested completion.



来源:https://stackoverflow.com/questions/40066446/kivy-textinput-with-autocomplete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!