Table Of Contents
Kivy framework¶
Kivy is an open source library for developing multi-touch applications. It is completely cross-platform (Linux/OSX/Win) and released under the terms of the GNU LGPL.
It comes with native support for many multi-touch input devices, a growing library of multi-touch aware widgets and hardware accelerated OpenGL drawing. Kivy is designed to let you focus on building custom and highly interactive applications as quickly and easily as possible.
With Kivy, you can take full advantage of the dynamic nature of Python. There are thousands of high-quality, free libraries that can be integrated in your application. At the same time, performance-critical parts are implemented in the C language.
See http://kivy.org for more information.
- kivy.require(version)¶
Require can be used to check the minimum version required to run a Kivy application. For example, you can start your application code like this:
import kivy kivy.require('1.0.1')
If a user attempts to run your application with a version of Kivy that is older than the specified version, an Exception is raised.
The Kivy version string is built like this:
X.Y.Z[-tag[-tagrevision]] X is the major version Y is the minor version Z is the bugfixes revision
The tag is optional, but may be one of ‘dev’, ‘alpha’, or ‘beta’. The tagrevision is the revision of the tag.
Warning
You must not ask for a version with a tag, except -dev. Asking for a ‘dev’ version will just warn the user if the current Kivy version is not a -dev, but it will never raise an exception. You must not ask for a version with a tagrevision.
- kivy.kivy_configure()¶
Call post-configuration of Kivy. This function must be called if you create the window yourself.
- kivy.kivy_register_post_configuration(callback)¶
Register a function to be called when kivy_configure() is called.
Warning
Internal use only.
- kivy.kivy_options = {'window': ('egl_rpi', 'pygame', 'sdl', 'x11'), 'camera': ('opencv', 'gstreamer', 'videocapture'), 'video': ('ffmpeg', 'gstreamer', 'pyglet'), 'clipboard': ('pygame', 'dummy'), 'text': ('pil', 'pygame', 'sdlttf'), 'image': ('tex', 'imageio', 'dds', 'gif', 'pil', 'pygame'), 'audio': ('pygame', 'gstreamer', 'sdl'), 'spelling': ('enchant', 'osxappkit')}¶
Global settings options for kivy
- kivy.kivy_base_dir = '/wrkdirs/usr/ports/x11-toolkits/py-kivy/work/kivy-kivy-ee1985a/kivy'¶
Kivy directory
- kivy.kivy_modules_dir = '/wrkdirs/usr/ports/x11-toolkits/py-kivy/work/kivy-kivy-ee1985a/kivy/modules'¶
Kivy modules directory
- kivy.kivy_data_dir = '/wrkdirs/usr/ports/x11-toolkits/py-kivy/work/kivy-kivy-ee1985a/kivy/data'¶
Kivy data directory
- kivy.kivy_shader_dir = '/wrkdirs/usr/ports/x11-toolkits/py-kivy/work/kivy-kivy-ee1985a/kivy/data/glsl'¶
Kivy glsl shader directory
- kivy.kivy_icons_dir = '/wrkdirs/usr/ports/x11-toolkits/py-kivy/work/kivy-kivy-ee1985a/kivy/data/icons/'¶
Kivy icons config path (don’t remove the last ‘’)
- kivy.kivy_home_dir = ''¶
Kivy user-home storage directory
- kivy.kivy_userexts_dir = ''¶
Kivy user extensions directory
- kivy.kivy_config_fn = ''¶
Kivy configuration filename
- kivy.kivy_usermodules_dir = ''¶
Kivy user modules directory
- Animation
- Application
- Asynchronous data loader
- Atlas
- Cache manager
- Clock object
- Configuration object
- Event dispatcher
- Event loop management
- Factory object
- Garden
- Gesture recognition
- Interactive launcher
- Kivy Language
- Logger object
- Metrics
- Parser utilities
- Properties
- Resources management
- Support
- Utils
- Vector
- Weak Method