Introduction
Kivy is a multi-platform Python GUI development library that runs on iOS, Android, Windows, OS X, and GNU/Linux. It aids in the development of apps that make use of cutting-edge multi-touch user interfaces. Kivy's core concept allows developers to create an app once and deploy it across all devices, making code reusable and deployable and enabling quick and easy interaction design and prototyping.
In this article, with the help of an example, we'll look at a Virtual keyboard in Kivy Python. This post assumes you've done some Python programming before. If that is not the case, you can return here after reading our Basics of Python article.
VKeyboard
VKeyboard is a Kivy onscreen keyboard. Its works are intended to be transparent to the user. Its layout is completely adjustable, and a button in the widget's bottom right allows you to swap between different layouts. Using the widget directly is NOT recommended.
Modes
This virtual keyboard has two mode:
- docked mode (VKeyboard.docked = True)When only one person is utilizing the computer, such as a tablet or personal computer, Docker mode is commonly used.
- free mode: (VKeyboard.docked = False) Typically used on multi touch surfaces. Multiple virtual keyboards can be utilized on the screen in this mode.
You must explicitly call VKeyboard.setup mode() if the docked mode changes; otherwise, the change will have no effect. The VKeyboard, which is constructed on top of a Scatter, will change the scatter's behavior and position the keyboard near the target during that call (if target and docked mode are set).