Kivy — it is a platform independent GUI tool in Python. Since it can run on Android, IOS, Linux, Windows, etc. It is mainly used to develop Android application, but that does not mean that it cannot be used in desktop applications.
The TextInput widget provides a field for editing plain text. Unicode, Multiline, cursor navigation, selection and clipboard functions are supported.
TextInput uses two different coordinate systems:
Basic Approach: 1) import kivy 2) import kivyApp 3) import widger 4) import Relativelayout 5) import textinput 6) Set minimum version (optional) 7) Create Widget class 8) Create App class 9) create .kv file (name same as the app class): 1) create textinput 10) return Layout / widget / Class (according to requirement) 11) Run an instance of the class
Implementation of the approach
# main.py file p>
# main.kv file
When you run the application, you will see:
After some input you will see: