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
10
votes
1 answer

Display kivy slider value as it changes

I was wondering whether it was possible to displays kivy spinner values as a moving label, so that the user knows exactly what the current value of the slider is. Thanks
The armateur
  • 103
  • 1
  • 1
  • 4
10
votes
4 answers

How to make a widget span multiple columns/rows in gridlayout in kivy

I would like to create an app in kivy with widgets in a grid and I want to be able to set some widgets to be larger - to occupy more than one cell in a grid. GridLayout seems the most appropriate, but it seems to not support placing widgets in more…
user3299143
  • 113
  • 1
  • 1
  • 5
10
votes
2 answers

Kivy ObjectProperty to update label text

I am working on creating a kivy user interface to display the values generated by a data model I've written as a standard python object. In essence, I would like the user to be able to press a button, which would change the underlying data model…
jsexauer
  • 681
  • 2
  • 12
  • 22
10
votes
3 answers

Remove or replace the kivy splash screen on startup

When I launch my app (based on kivy) on my phone, there is 1 ~ 2 seconds showing the splash screen, says 'Loading...', before the main window becomes visible. How can I remove this in the code(main.py) or somewhere in the config(I found no config…
schemacs
  • 2,783
  • 8
  • 35
  • 53
10
votes
2 answers

Run the application in background

I am trying to build android app using kivy. How I can hide my app but still keep it running in the background like a deamon? from kivy.config import Config Config.set('graphics', 'fullscreen', 'fake') from kivy.app import App from kivy.uix.button…
sam
  • 18,509
  • 24
  • 83
  • 116
10
votes
2 answers

Rotating an object on a touch event in kivy

I'm working on making a circle that will spin kind of like a large dial. Currently, I have an arrow at the top to show which direction the dial is facing. I'd like its behavior to be kind of like an old timey rotary phone, such that while your…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
10
votes
2 answers

Python, Kivy and Android Game

I want to create a game for Android and want to try something new. I really love python and want to use it for developing an Android game. Game is not simple, it would be 3D RPG game. I found Kivy Crossplatform Framework and PyGame. I really liked…
Irakli Lekishvili
  • 33,492
  • 33
  • 111
  • 169
10
votes
1 answer

How to make a server discoverable to LAN clients

I am working on a multiplayer game in python that uses the socket library for its networking. The game will support play over LAN. One player will set up the server and other players on the LAN will be able to join the game. To implement this, I…
dlm
  • 4,054
  • 2
  • 23
  • 19
10
votes
3 answers

Kivy how to rotate a picture

i'm trying to rotate some pictures i have to show on the screen, these picture are inside a stacklayout, and i need to show them as Portrait instead of landscape,i'm using the Image Widget Thanks
nukedbit
  • 453
  • 1
  • 4
  • 15
10
votes
1 answer

How do I update the Color of a **dynamically added** Ellipse (not using Builder) according to Widget Kivy properties?

This is very related to this other question. The only difference is that I am adding the Ellipse dynamically with with self.canvas instead of using the Builder (Builder.load_string or Builder.load_file). So here is the code that does work. When you…
toto_tico
  • 17,977
  • 9
  • 97
  • 116
10
votes
2 answers

Drawing SVG on Kivy canvas

I am new to Kivy. i need to create a classic analog clock. My Question is: how to draw svg graphics into kivy canvas?
pylover
  • 7,670
  • 8
  • 51
  • 73
9
votes
2 answers

ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.4.5

I did all the whole process to install Kivy... python -m pip install --upgrade pip wheel setuptools python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew python -m pip install kivy.deps.gstreamer python -m pip install…
9
votes
1 answer

xclip and xsel - FileNotFoundError: [Errno 2]

I have kivy 1.10.1, python 3.8.2 and I code on Ubuntu20.04. When I launch my little program, I receive this error: [CRITICAL] [Cutbuffer ] Unable to find any valuable Cutbuffer provider. xclip - FileNotFoundError: [Errno 2] Aucun fichier ou…
Snakiron
  • 423
  • 4
  • 11
9
votes
1 answer

How to change button size in kivy?

I am writing a program in Python using kivy, and I am unable to change the size of the buttons that transition back and forth between two screens I can't think of any reason why I'm unable to change its size with something like "size: 75, 50" is it…
Hamza Faisal
  • 115
  • 1
  • 1
  • 4
9
votes
2 answers

Kivy: how do I make a non-editable text input?

How to make a text input non editable by user ? TextInput: id:out background_color: (0, 0, 0, 1) foreground_color: (0, 1, 0, 1) multiline: True text:""
Mike Delta
  • 726
  • 2
  • 16
  • 32