Are you keen to create Smartphone and tablet apps but don't want abandon Python?
Well you can with Kivy.
Led by professional software developer team the Kivy community has developed a cross-platform, open source Python library with support for multi-touch interfaces.
Kivy is 100% free to use under an MIT license (previous to version 1.7.2 it was LGPL 3). So you can also use it for commercial purposes.
Kivy code runs unchanged on all supported platforms, namely Linux, Windows, Android plus Apple's OS X and iOS. It has a reputation for stability, a well documented API and a how-to-get-started programming guide.
Many native inputs and protocols are supported by Kivy such as WM_Touch
, WM_Pen
, Mtdev
, Linux Kernel HID
, TUIO
plus Mac OS X Trackpad and Magic Mouse. And there's also a multi-touch mouse simulator.
The toolkit includes over 20 coder-extensible widgets, with elements written in C using Cython for performance.
Graphics Processing Unit (GPU) acceleration is built-in thanks to a graphics engine built over OpenGL ES 2 and incorporating a fast graphics pipeline.
The code example below (taken from the Kivy website) illustrates the Kivy app basics:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
No comments:
Post a Comment