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

Kivy boolean object property does not change with checkbox

So I am trying to take values out of three radio buttons, each having their own boolean assigned to them, and even though my buttons really do change their own values, they don't seem to change the values assigned in the value:attribute. This is the…
Fireball24
  • 53
  • 6
2
votes
1 answer

How can I enable scrolldown functionality when needed?

I'm building an application with Kivy that will have a bunch of drop down items. When I make an accordion bigger than the screen I get, "Not Enough Space to Display All Children." Since, I have too many children to display on one page and don't want…
Whip
  • 133
  • 2
  • 10
2
votes
3 answers

Kivy on Windows10. How to click a button, when kivy application does not in focus?

I have a simple kivy app with 3 buttons. When my kivy app is not in focus, I have to click on it once, in order to press any button. How can I click any button with only one click without activating a kivy window? #:kivy 1.10.0 cannot press any…
2
votes
1 answer

Bind TextInput to Label in .kv File

I was following the tutorial video "Kivy crash course 3: More interesting widget interactions" by Alexander Taylor, but he is writing the code in python rather than in a .kv file. I was trying to follow the tutorial using a .kv file instead, but I…
Spencer
  • 23
  • 4
2
votes
1 answer

kivy + android intent filters

Im very new to kivy and python so I may have thrown myself in at the deep end here but i'm trying to figure out how to get an android intent and use it within a simple kivy app? So im currently trying to figure out the basic design elements and just…
2
votes
0 answers

Kivy changing texture of image gives black image

Kivy after changing Image.texture, gives black result. My code: self.ids['profimage'].source = './add_photo.png' Few lines later... pimg = Image.open(bio).convert('RGB') # bio is a valid _io.BytesIO object with image data pimg = pimg.crop((0, 0,…
olokelo
  • 135
  • 1
  • 1
  • 8
2
votes
2 answers

Kivy: Clearing Text Input with 'on focus' or 'on_touch_down'

I want to clear a TextInput's text: when I click on it. Sample Code: from kivy.app import App from kivy.lang import Builder kv_string = """ ScreenManager: id: manager Screen: BoxLayout: orientation: 'vertical' …
Petar Luketina
  • 449
  • 6
  • 18
2
votes
1 answer

kivy setting default_font doesn't change font

I'm using the following config lines to set the font used by kivy globally: Config.set('graphics', 'default_font', '["Arial", "C:/Windows/Fonts/arial.ttf", "C:/Windows/Fonts/ariali.ttf", "C:/Windows/Fonts/arialbd.ttf",…
Carl
  • 705
  • 8
  • 22
2
votes
2 answers

Cannot get window to open in kivy

I am starting to use kivy for my game, so while following some tutorials online, the python shell returns these errors. [INFO] [Logger] Record log in C:\Users\...\.kivy\logs\kivy_18-10-23_8.txt [INFO] [Kivy] v1.10.1 [INFO] [Python] v3.7.0…
SoInstant
  • 49
  • 9
2
votes
1 answer

Kivy - Accessing Elements of a ListProperty in .kv file

I have started programming with Kivy, the amazing open-source GUI library in Python. I came accross a problem close to this topic but it has no satisfying answer. I want to access the elements of a ListProperty attached to my widget in my .kv file…
2
votes
2 answers

Moving multiple Widgets in Kivy independently

I'm trying to create a Royal game of Ur with python using Kivy libs. What I'm trying to do is to create a board (Which is done, but more complicated work is ahead) and 7 pieces (figures) for each player. I managed to create all 7, but had no idea…
Zackyy
  • 41
  • 5
2
votes
1 answer

Kivy loading screen

I am currently trying to make a loading screen for Kivy application by switching screens. #: import FadeTransition kivy.uix.screenmanager.FadeTransition MyScreenManager: id: myscreenmanager transition: FadeTransition() PreLoadScreen: …
BerryMan
  • 145
  • 1
  • 15
2
votes
1 answer

How can I use the RecycleView of Kivy on kv language with ScreenManager?

I have a database on Firebase of Google working well, I can save my data there easily. I would like to return this data for my app, but before I have problems with this, I can't list anything on Kivy. I would want to use the ListView of Kivy, but in…
2
votes
2 answers

Pass argument to other Property

I have two screens. On Box I have a button with a name. When I click the button, I want to switch the screen to ChangeText see the name there. Once I click the button the text of Box.name should be the TextInput-text. I can't find a…
2
votes
0 answers

Python Kivy using Matplotlib for plotting real time graphs (size too small)

I am trying to create a measurement visualization inside kivy using kivy garden matplotlib. The goal is to plot variables from a dictionary with their associated measurements. At the moment the code (see below) consists of 3 parts. After the import…
New2Coding
  • 181
  • 13