Questions tagged [kivy]

Kivy is an open source Python library for rapid development of cross-platform applications equipped with novel user interfaces, such as multi-touch apps.

is a library for the development of multi-touch enabled media-rich applications. The aim is to allow for quick and easy interaction design and rapid prototyping while making your code reusable and deployable.

Kivy is written in Python, based on and supports different input devices such as Mouse, Dual Mouse, TUIO, WiiMote, WM_TOUCH, HIDtouch, Apple's products and so on.

Kivy is actively being developed by a community and free to use. It operates on all major platforms (, , , , , ).

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 graphics 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 the evolution of the PyMT project, and it is recommended for new projects.

UPDATE:

Kivy now supports Material Designs (inspired from Google) and is available via KivyMD .


icon Kivy Kivy


The main resource for information is the website. In addition, you can also check the Wikipedia entry for Kivy.

13657 questions
133
votes
16 answers

fatal: could not create work tree dir 'kivy'

I'm trying to clone my fork of the kivy git, but it's not working. I've made the fork correctly, I believe, but when I type this into my Mac terminal: git clone https://github.com/mygitusername/kivy.git I get this error: fatal: could not create…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
105
votes
2 answers

What is the difference between armeabi-v7a, arm64-v8a, x86?

I am working on an Android App on Kivy. I am using Buildozer to compile an APK file. In the Buildozer spec file, there's a setting android.arch = armeabi-v7a, I didn't understand this. Also, when I generated the APK file using the command buildozer…
Chitkaran Singh
  • 1,466
  • 2
  • 10
  • 18
55
votes
4 answers

Kivy for Android apps

I've just started diving into the Android world. I have a lot of experience programming apps in Python, so I've searching for a good combination "Android + Python", and I think I've found it: Kivy. I need to make applications that are able to…
juliomalegria
  • 24,229
  • 14
  • 73
  • 89
55
votes
1 answer

Error packaging Kivy with numpy library for Android using buildozer

I am trying to create an Android package of my Kivy application using buildozer but I am getting this error when I try to include the numpy: resume of the error: compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/include…
João Abrantes
  • 4,772
  • 4
  • 35
  • 71
54
votes
5 answers

Pyinstaller adding data files

I'm struggling with pyinstaller. Whenever I build this specific script with a kivy GUI and a .kv file, and run the .exe after the build, I get a fatal error: IOError: [Errno 2] No such file or directory: 'main.kv' I've tried adding the .kv file, as…
staos2
  • 645
  • 1
  • 5
  • 7
54
votes
4 answers

Kivy: How to change window size?

I'm starting to write a program using kivy, but I have some problems understand how it deals with sizes. For example: import kivy kivy.require('1.5.1') from kivy.app import App from kivy.uix.button import Button class MyApp(App): def…
Bakuriu
  • 98,325
  • 22
  • 197
  • 231
40
votes
1 answer

What Kivy Tutorials Are Available

What Kivy tutorials and learning aids exist? Where is the list for Kivy? This is besides the pong tutorial on their website?
ganlaw
  • 1,303
  • 4
  • 18
  • 32
39
votes
2 answers

Why does right-clicking create an orange dot in the center of the circle?

Why does the first widget example in kivy lead to an orange circle in the middle of the yellow one when you right click on the canvas and a pure yellow one when you left click? from kivy.app import App from kivy.uix.widget import Widget from…
Terrence Brannon
  • 4,760
  • 7
  • 42
  • 61
34
votes
3 answers

Changing the background color of a Button in Kivy

I'm new to Kivy and having trouble specifying the background color of a Button. Here's my simple example: # custombutton.py from kivy.app import App from kivy.uix.widget import Widget class MyWidget(Widget): pass class…
Fiver
  • 9,909
  • 9
  • 43
  • 63
33
votes
7 answers

Unable to get a window, abort

I'm getting what seems to be a common error running the Kivy hello world program. I've tried the solutions I've seen here: manually install gstreamer, adding it to PATH and installing PySDL2. My OS is Windows 7, all other version info is in the…
foosion
  • 7,619
  • 25
  • 65
  • 102
30
votes
3 answers

kivy: change background color to white

I'd like to have an app with black buttons and labels, and with white text, and thus, would like to have white space separating these widgets. I suppose that in order to do so, it would be necessary to convert the background from the default color,…
James_L
  • 1,225
  • 5
  • 19
  • 26
29
votes
4 answers

Difference between Kivy and PY4A

I'm new to android development, and I have had some experience with Java, C#, Python, etc. Python being my favourite, I'd like to code Android app with it. Then I saw this question: Is there a way to run Python on Android? The most voted answers…
octref
  • 6,521
  • 7
  • 28
  • 44
28
votes
1 answer

How do you check for keyboard events with kivy?

So, awhile ago, I started teaching myself kivy. I started with the main kivy website and went through its pong making tutorial and upon finishing that I decided to try and give it key input. I just can't seem to find any kind of guide to key input…
Alex
  • 341
  • 2
  • 4
  • 6
25
votes
5 answers

Kivy not working (Error: Unable to find any valuable Window provider.)

I have been getting this error: Unable to find any valuable Window provider. With kivy heres the "full" error: [INFO ] [Logger ] Record log in C:\Users\Victor\.kivy\logs\kivy_17- 05-27_10.txt [INFO ] [Kivy ] v1.10.0 [INFO ] [Python…
Victor Ocampo
  • 378
  • 2
  • 6
  • 15
25
votes
2 answers

QPython or Kivy for Android programming with Python - producing installable apk

Having read several Q&A's on SO, I realize that one has 2 options i.e. QPython and Kivy to do programming for Android, however, apparently both take different approaches. I am trying to validate my understanding and see if I am missing some key…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
1
2 3
99 100