ArticleslgStudy

computer science

Kivy (framework)

Kivy (framework) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Kivy (framework) rather than just read about it. In short: Kivy is a free and open source Python framework for developing mobile apps and other multitouch application software with a natural user interface (NUI). It is distributed under the terms of the MIT License, and can run on Android, iOS, Linux, macOS, and Windows.

Kivy (framework) — main illustration
Kivy (framework) — illustration

Key takeaways

  • Kivy (framework) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Kivy (framework) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Kivy (framework) from memory before moving on to harder problems.

Reference excerpt

Kivy is a free and open source Python framework for developing mobile apps and other multitouch application software with a natural user interface (NUI). It is distributed under the terms of the MIT License, and can run on Android, iOS, Linux, macOS, and Windows. Kivy is the main framework developed by the Kivy organization, alongside Python for Android, Kivy for iOS, and several other libraries meant to be used on all platforms. In 2012, Kivy got a $5000 grant from the Python Software Foundation for porting it to Python 3.3. Kivy also supports the Raspberry Pi which was funded through Bountysource. The framework contains all the elements for building an application such as:

extensive input support for mouse, keyboard, TUIO, and OS-specific multitouch events; a graphic library using only OpenGL ES 2, and based on Vertex Buffer Object and shaders; a wide range of widgets that support multitouch; an intermediate language (Kv) used to easily design custom widgets. Kivy is an evolution of the PyMT project.

Code example Here is an example of the Hello world program with just one button:

Kv language The Kv language is a language dedicated to describing user interface and interactions in Kivy framework. As with other user interface markup languages, it is possible to easily create a whole UI and attach interaction. For example, to create a Loading dialog that includes a file browser, and a Cancel / Load button, one could first create the base widget in Python and then construct the UI in Kv. In main.py:

And in the associated Kv:

Alternatively, the layout (here, Box Layout) and the buttons can be loaded directly in the main.py file.

Related projects Buildozer, generic Python packager for Android and iOS. Plyer, platform-independent Python wrapper for platform-dependent APIs. Pyjnius, dynamic access to the Java/Android API from Python. Pyobjus, dynamic access to the Objective-C/iOS API from Python. Python for Android, toolchain for building and packaging Python applications for Android. Kivy for iOS, toolchain for building and packaging Kivy applications for iOS. Audiostream, library for direct access to the microphone and speaker. KivEnt, entity-based game engine for Kivy. Kivy Garden, widgets and libraries created and maintained by community. Kivy SDK Packager, scripts for Kivy SDK generation on Windows, macOS and Linux. Kivy Remote Shell, remote SSH+Python interactive shell application. KivyPie, Raspbian-based distribution running latest Kivy framework on the Raspberry Pi. OSCPy, a fast and reliable OSC implementation. Condiment, preprocessor that includes or removes Python code portion, according to environment variables. KivyAuth, social login via Google, Facebook, GitHub and Twitter accounts in Kivy apps. KivMob, AdMob support for Kivy apps. KivyMD, a set of Material Design widgets for Kivy.

Google Summer of Code Kivy participated in Google Summer of Code under the Python Software Foundation.

Kivy in GSoC'2014. Kivy in GSoC'2015. Kivy in GSoC'2016. Kivy in GSoC'2017.

See also

Pygame, another Python game API, a layer over Simple DirectMedia Layer Cocos2d Panda3D Pyglet Scripting Layer for Android List of open-source application frameworks

References

External links Official website

Illustrations

Kivy (framework) illustration
Kivy (framework) illustration

Worked examples

Example 1 — a first encounter with Kivy (framework)

Start with the simplest possible case. Write down what Kivy (framework) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Kivy (framework) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Kivy (framework) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Kivy (framework)

In research
Kivy (framework) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Kivy (framework) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Kivy (framework) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cross-platform mobile software, Cross-platform software, Free software programmed in Python, so understanding it makes those chapters shorter.
In everyday life
Look for Kivy (framework) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Kivy (framework)” →

How to study Kivy (framework) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Kivy (framework) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Kivy (framework) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Kivy (framework) in simple terms?

Kivy is a free and open source Python framework for developing mobile apps and other multitouch application software with a natural user interface (NUI). It is distributed under the terms of the MIT License, and can run on Android, iOS, Linux, macOS, and Windows.

Why does Kivy (framework) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Kivy (framework)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Kivy (framework).

Tags

  • Cross-platform mobile software
  • Cross-platform software
  • Free software programmed in Python
  • Python (programming language) libraries
  • Software using the MIT license

Keep exploring