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
11
votes
3 answers

Kivy: Changing screens in screen manager with an on_press event

I would like to know how to change screens using an on_press event binded to a button, without using a KV file/KV language. I have read through the Kivy documentation, but have only been able to find solutions using a KV file. Example: on_press:…
Derick
  • 125
  • 1
  • 1
  • 7
11
votes
3 answers

Kivy installation does not find GL/gl.h?

i just wanted to install kivy to test it and make some apps i installed cython and the other things then i typed into the terminal (ubuntu 12.04): sudo easy_install kivy as answer i got this: Searching for kivy Reading…
mid_kid
  • 1,460
  • 2
  • 13
  • 15
10
votes
3 answers

Building Kivy Android app with Tensorflow

Recently, I want to deploy a Deeplearning model (Tensorflow) on mobile (Android/iOS) and I found that Kivy Python is a good choice to write cross-platform apps. (I am not familiar with Java Android) But I don't know how to integrate Tensorflow…
Vũ Sinh
  • 111
  • 1
  • 5
10
votes
1 answer

How to make circular progress bar in kivy?

I thought to make one simple circular progress bar using kivy and python. I searched online documentation and GitHub repertoires, but not found single proper example explaining the concept of circular progress bar . Like the image attached below. I…
10
votes
1 answer

Kivy - change FileChooser defaul location

Right now the file chooser opens the very root as the default location but i want it to skip that and open as default the internal storage (sdcard) and the user can go down from there. this is a snipped of my code so far The class: class…
Nick
  • 545
  • 12
  • 31
10
votes
3 answers

Can the Kivy language access inherited layouts and widgets?

Can the kivy language access inherited layouts and widgets? I want to create one basic BoxLayout that contains the styling and title Label for my widget. I want to be able to inherit from this widget and add additional widgets in different…
justengel
  • 6,132
  • 4
  • 26
  • 42
10
votes
1 answer

How can I remove a widget in kivy?

I am trying to do the same as I did to add these widgets, but without success. I am working with the kv language and bind function. With this code below is possible add a buttons dynamically, but isn't possible remove them. .py class…
victorcd
  • 429
  • 2
  • 6
  • 17
10
votes
2 answers

How to center buttons in Kivy?

I am new to Python UI programming, and I am trying out Kivy. I want to center some buttons on my screen, but the buttons do not move from the bottom right of the window. I was wondering if anyone could point out what I am doing wrong or am…
Jose
  • 1,616
  • 4
  • 26
  • 38
10
votes
1 answer

Kivy add widget at the end of layout

In the kivy doc there is the function add_widget(widget, index=0, canvas=None) and we must be able to set an index to position the widget. index: int, defaults to 0 Index to insert the widget in the list. Notice that the default of 0 means the…
Etienne Prothon
  • 982
  • 10
  • 30
10
votes
3 answers

Kivy Apk build with buildozer error: # Java compiler (javac) not found, please install it

I'm trying to build an apk of my kivy project. I have installed buildozer in python 2.7 Using PyCharm, then I built the .spec, but when I tried to create the apk, I got these results: i have insatalled jdk7 and 8 Using: buildozer Android…
Vilma De battista
  • 113
  • 1
  • 1
  • 7
10
votes
4 answers

using Kivy Garden Graph in KV language

How do I use the kivy module garden.graph inside the kv file? I only found documentation that explained how to use it in the main python script. I imported the kivy.garden.graph in the python file, and I can add the Graph inside the kv file, but I…
user3603948
  • 153
  • 3
  • 12
10
votes
3 answers

Building a simple progress bar or loading animation in Kivy?

I am writing a Kivy UI for cmd line utility I have developed. Everything works fine, but some of the processes can take from a few seconds to a few minutes to process and I would like to provide some indication to the user that the process is…
David K
  • 213
  • 1
  • 2
  • 12
10
votes
2 answers

Kivy - Map options (google maps, etc)

diving further into kivy, i began to wonder what map options were available (either google maps or something like open street maps). What i found so far: KivyMaps link So far the most usefull Module i found. It is supposed to work on mac, windows,…
BuroBernd
  • 444
  • 3
  • 8
  • 20
10
votes
2 answers

How do you scroll a GridLayout inside Kivy ScrollView?

At the moment this is my kv code that is not scrollable: BoxLayout: id: bl orientation: 'vertical' padding: 10, 10 row_default_height: '48dp' row_force_default: True spacing: 10, 10 GridLayout: id:…
swdev
  • 4,997
  • 8
  • 64
  • 106
10
votes
1 answer

Get textinput value in Kivy app

New to Python/Kivy trying to build a test app with an input box, an ok button and a label that should change text when the ok button is clicked. But instead I get 'NameError: global name 'txt1' is not defined'. What am I doing wrong? # import…
Fred
  • 461
  • 3
  • 9
  • 21