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

kivy: ImportError: No module named app

I just installed Kivy by following the steps mentioned on the official documentation. So I tried to test if it works by running an example found on the official documentation: import kivy from kivy.app import App from kivy.uix.label import Label …
user4772964
13
votes
1 answer

Python on android

Besides the official pygame port to android which requires python 2.7.1 which I like 3.4.1 better. Also besides Kivy, what is a way to put pygame or another python module on android?
HKVariant
  • 837
  • 10
  • 23
13
votes
1 answer

Accessing the parent object's size parameters in kivy widgets

Im learning Kivy and would like to center an object inside of a parent object. I know I can access an object's own properties with the self keyword in the kv language, but is there a shortcut for accessing a parent widget's, say, size and position…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
13
votes
2 answers

Resizing an image to variable/fixed dimensions?

Let's say you have a GridLayout with 3 rows and 1 column. The first and last rows will be Labels, and the middle row will contain an image. What is the best way to resize the image such that it has a fixed height (may or may not be the same height…
James_L
  • 1,225
  • 5
  • 19
  • 26
13
votes
3 answers

Passing image object as a button background in Kivy

In Kivy, is there a way to pass image object as a button background, instead of image file name? button.background_normal property accepts only strings. I would like to customize image properties, such as allow_stretch = False. If that succeeds, how…
blablatros
  • 733
  • 1
  • 7
  • 21
12
votes
3 answers

Is there a simple way to add a border to Kivy Buttons

I am using python-2.7 and kivy. Can someone tell me that how to add a different colour border to kivy button. test.py from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.core.window import Window Window.clearcolor = (0.5,…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56
12
votes
2 answers

Kivy: scroll to zoom

Is there a way to zoom into an image on a desktop kivy app (e.g. zoom with a mouse scroll-wheel)? It appears to be discussed here: https://github.com/kivy/kivy/issues/3563 but I do not see if there was a work around given. I began with a static…
mdoc-2011
  • 2,747
  • 4
  • 21
  • 43
12
votes
2 answers

Kivy RecycleView as an alternative to ListView? How does it work?

I should preface that I'm still a newbie to Kivy. I tried looking for similar questions, but they were either outdated or unclear. I was looking for something to display a list of elements among which a used could select one to interact with other…
theberzi
  • 2,142
  • 3
  • 20
  • 34
12
votes
6 answers

Kivy error, [CRITICAL] [Text ] unable to find any valuable text provider (python 3.6.1) (windows 10)

I have been trying to use Kivy (1.10.0) in pycharm, when it came to testing the install with: from kivy.app import App from kivy.uix.button import Button class TutorialApp(App): def build(self): return Button(text='Hello Kivy') if…
Master Noob
  • 659
  • 3
  • 9
  • 19
12
votes
1 answer

Tensorflow on Android with Python bindings?

I am trying to build Tensorflow core with Python bindings for Android - to be used from a Kivy app in Android, but not sure how to get the Python bindings working. Compiling the Tensorflow core for Android works with the following: bazel build -c…
Zoltan Fedor
  • 2,004
  • 2
  • 23
  • 40
12
votes
2 answers

Hiding and showing a widget

I am working on a Kivy project, and I need to display a label when there is no elements in a list. Otherwise, I need to display a list view. These are the two scenarios I am describing: When no friends to show: When list contains friends: This is…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
12
votes
1 answer

A simple web page inside kivy app as a widget

I want to have a web view in my kivy application that is running on ubuntu 64bit. I looked on the web, went through kivy's documentation and searched for answers on StackOverflow but I couldn't find anything that can do my job. A simple web page…
Akash Tomar
  • 970
  • 1
  • 11
  • 23
12
votes
5 answers

How do you verify/check kivy version?

This doesn't work: $ kivy --version Python 2.7.6 I've got Kivy.app installed, and it doesn't provide any version info either.
7stud
  • 46,922
  • 14
  • 101
  • 127
12
votes
3 answers

Kivy: Swiping (Carousel & ScreenManager)

I have two Screens in a ScreenManager that both contains a number of buttons in a ScrollView. The idea is that one steps forward (right) by clicking a button. And step back (left) by swiping back. So I am trying to add a Carousel to implement that…
dan-klasson
  • 13,734
  • 14
  • 63
  • 101
12
votes
3 answers

How do I run a function once the form is loaded Kivy

I have a kivy program in python which has a textbox and a few buttons. I have written the ui in kivy language and I need to run a function which updates the text box and waits for the user to press a button. Is there an on_load property I can use or…
chromebookbob
  • 193
  • 1
  • 3
  • 8