Multi-platform applications with Kivy

June 1, 2020

In an attempt to create a simple application to run across multiple platforms with minimum coding effort, I ended up finding the Kivy framework.

Kivy is open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.

I spent the labday learning the basics of Kivy and built an app that captures and displays the click count on the screen. I was also able to generate/convert the kivy application to an iOS app for the same using the framework.

 

The application:

     Capture and display  number of clicks inside the window area.

 

Implementation:

 

  1. Main.py  — contains the logic of the application.

 

 

  1. main.kv — Contains the user interface.

Project run as desktop application:

Kivy-ios toolchain is designed to compile the necessary libraries for iOS to run your application and manage the creation of the Xcode project. 

 

The following command converts your kivy application to xcode project:

toolchain create <title> <app_directory>