Install Kivy 1.8 in Ubuntu 14.04

Kivy is an open source Python library for rapid development of application software’s that make use of innovative user interfaces, such as multi-touch apps. Kivy runs on Android, iOS, Linux, OS X, and Windows. You can run the same code on all supported platforms.

Kivy uses 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 also.

The graphics engine is built over OpenGL ES 2, using a modern and fast graphics pipeline. The toolkit comes with more than 20 widgets, all highly extensible. Many parts are written in C using Cython, and tested with regression tests.

Kivy in action

There are lots of other Youtube videos on Kivy. Check them out also

[button link=”http://kivy.org/#changelog” style=”info” color=”primary”]Change Log for Kivy 1.8[/button]

Install Kivy via PPA

There are 2 versions currently available for installation; v1.8.0 (stable) & 1.8.1 (Development)

Install v1.8.0

sudo add-apt-repository ppa:kivy-team/kivy

sudo apt-get update

sudo apt-get install python-kivy

sudo apt-get install kivy-examples

Install v1.8.1

sudo add-apt-repository ppa:kivy-team/kivy-daily

sudo apt-get update

sudo apt-get install python-kivy

sudo apt-get install kivy-examples

Launch Kivy Example

– To test run kivy, I will create a sample ‘hello.py‘ file

sudo gedit /usr/share/kivy-examples/hello.py

– Paste the following code and save

[box type=”info”]

from kivy.app import App
from kivy.uix.label import Label

class SysadsGazette(App):

def build(self):
return Label(text=’Hi, this is Sysads Gazette first Kivy app. Exciting’)

if __name__ == ‘__main__’:
SysadsGazette().run()

[/box]

– Launch your first hello app 🙂

sudo python /usr/share/kivy-examples/hello.py

 

– Run one of the installed samples

sudo python /usr/share/kivy-examples/demo/pictures/main.py

 
comments powered by Disqus