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

My Kivy program has a random white square showing up in the bottom left corner

I am trying to create a program that outputs random 10x10 grids of black and white squares. It mostly works except that the bottom left corner has an unwanted white square covering up part of the grid. I can't even figure out what widget would…
Plug Fire
  • 127
  • 10
2
votes
2 answers

Using jsonstore in Kivy

I created a GUI based off this question while trying to teach myself how to use jsonstore. I don't have the reputation points to add a comment so I'm asking my question here. I think I have the basic idea down but for some reason I can't save the…
Jarren Poulsen
  • 141
  • 1
  • 13
2
votes
0 answers

Kivy window closing after running on Pycharm

every time I run the code the kivy window appears and closes by itself, how can I solve this? from kivy.app import App hello_world = App() hello_world.run() console: C:\Users\Rafael\Anaconda3\envs\k35\python.exe…
RafaelB13
  • 142
  • 2
  • 14
2
votes
1 answer

How to modify kivy widget property by id on .py file

I have a label and a text input, and I wanna change it's text property by a variable on .py file. Here's the code: Here's the .kv : BoxLayout: orientation:'vertical' BoxLayout: …
Enzo Dtz
  • 361
  • 1
  • 16
2
votes
1 answer

Kivy Properties and communications between different widgets and layout classes

I have a simple example of the issue below. I have three classes MyLayout (root), Pop a popup class and MyBox which is a Boxlayout created dynamically with a click of a button in MyLayout. I have made the capitalise() function in root that works…
2
votes
2 answers

Creating a sqlite3 database with Kivy

I'm trying to create a database using sqlite3 in Python 3 using Kivy. I've searched all over youtube, stack overflow, and even bought a Kivy book from O'Reilly to figure this out. I've also played around with tkinter, MySQL, and JSON to try and…
Jarren Poulsen
  • 141
  • 1
  • 13
2
votes
1 answer

How to collect Text Input data as variable to use in an If statement

I need to know the syntax for collecting user input data in text boxes in kivy, the intention is to make the login button in the bottom left hand of the screen function like it should. I want to make the program able to collect what the user puts in…
Hamza Faisal
  • 115
  • 1
  • 1
  • 4
2
votes
0 answers

PyInstaller does not include the kivy.garden.mapview package.What is the workaround?

Python Version: 3.6.7(Anaconda Environment) Kivy Version: 1.10.1 So I installed mapview with the command garden install mapview and my python file easily detects it and runs it.But when I make exe with PyInstaller it showed the following error…
5cube
  • 57
  • 9
2
votes
1 answer

Kivy: weird Button on_touch_down behaviour?

I am building a Trivia app, each question has 4 options attached. For each option, it is associated with an OptionButton class. 4 OptionButton instances are stored inside a grid layout Choices. What I want is that: if user press the correct button,…
Arief
  • 199
  • 1
  • 12
2
votes
3 answers

How to change a global variable with a Button

I'm working on an program that is suppose to be an assistant for people that go to my local gym. Though I'm having trouble with a global variable difficult to change its string value. I want to be able to press any of the Buttons in main_Screen and…
ShrooMsss
  • 25
  • 6
2
votes
1 answer

Kivy (Python) - Ellipse Click Event

I'm trying to translate the beginnings of a simple canvas app I wrote in JavaScript to the Kivy framework. I have been able to distribute vertices along the perimeter of a circle, but I have been unsuccessful in registering click events on each…
spidercatnat
  • 439
  • 1
  • 5
  • 15
2
votes
1 answer

How to get widget position in kivy

I am learning to code with Python and Kivy. I want to get the position of a button (button1), which is in a boxlayout, relative to the window. However when I print button1.pos or button1.to_window(*button1.pos) I get [0, 0] which is clearly not the…
Jacob French
  • 21
  • 1
  • 2
2
votes
1 answer

How to change Kivy dropdown width

I have a kivy dropdown menu and I can't get the width of the button to change. Does anyone know how to do this? I attached a photo of what the button looks like. Here is the line where i add buttons: self.drop_down.add_widget(Button(text=address,…
2
votes
7 answers

No module named 'Kivy' even though I installed it

I've installed Kivy and all the need files as far as I know, but I'm still getting this error message and I don't know why. from kivy.app import App from kivy.uix.gridlayout import GridLayout class Container(GridLayout): pass class…
Y. Ben
  • 73
  • 1
  • 2
  • 9
2
votes
0 answers

getting a black screen when running a kivy code

I am trying to learn kivy but when i installed it and codded my first class am getting a black screen. from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): return Label(text="Hello…