Kivy – Open source Python library

I have started my final project. So that i searched which framework is best for doing my project. I asked my senior Shrinivasan from Kanchilug. He told me to use Kivy python library. I don’t know about kivy, i search this term on internet. Here i shared my knowledge about Kivy.
Kivy – is an Open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.

I think many of the GUI frameworks available in python like PyGTK, PyQT, WXPython, TKinter etc,.. Then what is the advantage of using Kivy?

I asked this in IRC chat. My friend simply said the following answer.

1. Do you want to create a functional GUI with the least work? TKinter.
2. Do you want to create something that looks great in Linux? PyGTK.
3. Something that looks as good as possible across all platforms? PyQT.
4. Something with all the above and multitouch? use Kivy.

Advantages:

1. Cross platform
Kivy runs on Linux, Windows, OS X, Android and iOS. You can run the same code on all supported platforms.
It can use natively most inputs, protocols and devices including WM_Touch, WM_Pen, Mac OS X Trackpad and Magic Mouse, Mtdev, Linux Kernel HID, TUIO. A multi-touch mouse simulator is included

2. Business Friendly
Kivy is 100% free to use, under an MIT license (for 1.8 and 1.7.2), and LGPL 3 for the previous versions. The toolkit is professionally developed, backed and used. You can use it in a commercial product.
The framework is stable and has a well documented API, plus a programming guide to help you get started.

You can get all the above informations from kivy.org

Kivy installation Ubuntu

I am using Ubuntu 12.04, Here i am sharing installation methods for Ubuntu 12.04 and other versions.

Step 1:

The above command will asks you to install “pip” command if you don’t have it.
So first we need to install pip command. The following command is used to install pip.
First we need PIP command for installing Kivy. So first done the following command

$ sudo apt-get install python-pip



For Ubuntu 12.04 follow this command, this will install all necessary packages.

$ sudo apt-get install python-setuptools python-pygame python-opengl \
  python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev \
  build-essential libgl1-mesa-dev-lts-quantal libgles2-mesa-dev-lts-quantal\
  python-pip


If you are using other versions of Ubuntu, do the follow command:

$ sudo apt-get install python-setuptools python-pygame python-opengl \
  python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev \
  build-essential libgl1-mesa-dev libgles2-mesa-dev zlib1g-dev python-pip


Step 2:

Kivy requires a recent version of Cython.
The following command is used to Upgrade Cython.

$ sudo pip install --upgrade cython


Tutorials

The following official link helps you working with Kivy framework.
Click here for “Tutorials”

And the following link will helps you to download Kivy Documentation as PDF
Download Documentation.

With Regards
S. Praveen

Advertisements

One thought on “Kivy – Open source Python library

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s