用于NUI开发的Python框架:Kivy
Kivy - 开源的Python库,用于快速开发创新用户界面的应用,比如多点触控的应用程序。
跨平台
Kivy能够运行在 Linux, Windows, OS X, Android 和 iOS 平台之上。您可以在所有支持平台上运行相同的代码。
它能够原生得使用大部分输入,协议和设备。包括WM_Touch, WM_Pen, Mac OS X Trackpad 和 Magic Mouse, Mtdev, Linux Kernel HID, TUIO。还包含一个多点触摸鼠标模拟器。
商业友好
Kivy是100% 免费使用。从1.7.2之后的版本使用 MIT license,之前的版本使用 LGPL 3 。该工具包是专业开发,支持和使用。您可以在商业产品中使用它。
该框架是稳定的,并且具有良好的API文档,再加上编程指南,以帮助您开始。
GPU 加速
图形引擎是建立在OpenGL ES 2 之上。用现代的,快速的图形pipeline。
该工具包附带了20多个部件,都高度可扩展的。许多部件都是用C开发,通过用Cython实现。并经回归测试过。
示例:
from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World') TestApp().run()
![helloworld.png helloworld.png](https://simg.open-open.com/show/58beb8572b5051af210329dfc2f97a14.png)
Framework Gallery
![](https://simg.open-open.com/show/cf26d789564c8b51208a322004be7812.jpg)
Kivy on Android
![](https://simg.open-open.com/show/ca7b3a6bc9295878e36c3f943bf0c8c3.jpg)
Pictures demo
Selected Projects
![](https://simg.open-open.com/show/7b51071613e5023a8b1f8667c2203e48.jpg)
Particle Panda
Create particle effect for particle systems
used in Starling, Kivy and Cocos2d
Working on Desktop and mobile.
![](https://simg.open-open.com/show/2134cb7aa33427a420d83f18beb1bb38.jpg)
Yeco
Yeco is a multi touch controller for Ableton Live
Working on Windows 32/64, Mac soon
![](https://simg.open-open.com/show/60300f0ecad44b631418f40718ae3093.jpg)
ProcessCraft
Commercial application for Business Process Modeling
Running on iOS, Android, and others desktop OS
Website - by Showgen Ltd.
![](https://simg.open-open.com/show/44c9540d0c2f30f39464cd8a0af0a482.jpg)
![](https://simg.open-open.com/show/c1d4ee1319dfc8595856f67ac4ed76d3.jpg)
![](https://simg.open-open.com/show/f07c8bafd4d92407a7c1e92503c3bc81.jpg)
![](https://simg.open-open.com/show/d9f88ed30877652b97e209b542c53635.jpg)
TicTacTouch
Multitouch screen used for control a PLC hardware machine.
By Dominique Burnand and Livio Conzett
![](https://simg.open-open.com/show/b87dee32dc325bd7a74daa8194d9219f.jpg)
bargenius
Interactive tablet menu with wine, beer, cocktail...
Clean design with cool touch interaction, on android !
Website - by fresk interactive
![](https://simg.open-open.com/show/6ed6a23bb36d1fa5be19dc2904ebd440.jpg)
Kaleidoscope
Educational project using 4 tablets and 1 table with projection.
Augmented knowledge table, that can be shared across tablet.
Source Code - by Erasme
![](https://simg.open-open.com/show/d4c4cac9ee6bda08ddc40356428aecb4.jpg)
Touch Live
Monome-like controller implemented in Kivy.
Graham is creating his own music on it.
![](https://simg.open-open.com/show/cd9226819464ab88e836a2e067a5d7a7.jpg)
Icarus Touch
Continuous keyboard implemented in Kivy.
Cyril is improvising over some backing tracks.
Made by Cyril Stoller from Liquid Rain - Source Code
![](https://simg.open-open.com/show/71020e42db3be43cfeac6a23247348fc.jpg)
The noBOOTH
Interactive touchscreen using Kivy for taking
pictures and customize the photo with some gadgets.
Website - by fresk interactive
![](https://simg.open-open.com/show/375fe96d8c644dd473bc77b25bc560dc.jpg)
Plane White
Interactive white surface for discovering art exhibition.
Source Code - by Complex IT and Carina Ow