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

How to get all the folder name of android phone from internal storage and show it in the text-field?

What I want to do is to view all the folder name in the text-field from a specific location. For example, the given data path is- android/data/ Here, inside data path we have some folders like com.facebook.katana, com.android.browser,…
Shiam
  • 21
  • 3
2
votes
1 answer

Validate a Kivy TextInput on Input as Data Type Integer Before Accepting Input

I am trying to validate a TextInput in Kivy before doing calculations on the value of the Input before Updating the calculated data to a ListView. But when I test the first TextInput value by printing it out there is nothing, no error and no…
Hmerman6006
  • 1,622
  • 1
  • 20
  • 45
2
votes
1 answer

How to call a function just by entering the screen in Python Kivy

it should be like: if entered this screen: call(function) I am also writing code using .kv file and .py at the same time so please give me a tip that will work in my occasion)
user10177366
2
votes
0 answers

Kivy-Python error after releasing VideoCapture(0) and setting kivy camera.play = True

import numpy as np import cv2 import time import datetime import math from scipy.spatial import distance as dist import os import image_processing as imp import kivy from kivy.app import App from kivy.uix.gridlayout import GridLayout from…
Artem P.
  • 21
  • 1
2
votes
2 answers

How in Kivy to implement the transition to a new Screen through the function?

I want to implement the transition to a new Screen after clicking on the button and I want to do this through the function. I have this kv code : orientation: 'vertical' cols: 3 ActionBar: ActionView: …
user8788726
2
votes
1 answer

Kivy returns an error even though all dependencies are installed

I had a problem with trying to run my first kivy code because of this error: C:\Users\OnlyMe\PycharmProjects\sana\venv\Scripts\python.exe C:/Users/OnlyMe/PycharmProjects/sana/sana.py [INFO ] [Logger ] Record log in…
Jezreel Martin
  • 75
  • 1
  • 10
2
votes
1 answer

How to find USB devices and communicate with them using pySerial in Android?

I'm currently working on a project where I need to connect a heart rate sensor to an Android device and visualize the data on a Kivy-based app. Tried to use serial.tools.list_ports.comports but it returned nothing on the device. They have already…
Deniz
  • 21
  • 1
  • 5
2
votes
1 answer

Drag and Drop image and display image on gridlayout - Kivy

I'm new to kivy and I'm trying to create a drag and drop app where if the image is dropped onto the gridlayout the image is shown on the app as shown below. I'm trying to get the file_path of the image and then using the file_path to display it on…
Abid Abdul Gafoor
  • 462
  • 1
  • 6
  • 18
2
votes
1 answer

Kivy Raspberry Pi Screenshot

I am working on a Kivy App for Raspberry Pi. The App runs full screen, not in any kind of windowed mode (which I understand isn't supported on RPi anyway). I am attempting to take screen shots so I can write documentation for the app, but when I…
Kevin John
  • 71
  • 8
2
votes
1 answer

Switching between screens defined in separate .kv (Kivy) files

I once managed to get a multi-screen program working by having everything (including screens) defined in a single .kv file. By using root.current (in .kv file) or self.root.current (in Python file) I was able to switch between screens. However, the…
James C
  • 901
  • 1
  • 18
  • 38
2
votes
3 answers

How to select text in TextBox

I am using python-2.7 and kivy.Someone help me that when i click into TextBox then how to select text using python or kivy code? test.py from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.core.window import…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56
2
votes
0 answers

ImportError: No module named pip._internal

So I am working on installing Cython for Kivy so I can package my project into an iOS file that I can test on my iPhone. Here is the link I'm following: https://kivy.org/docs/guide/packaging-ios.html The issue I run into when installing something…
Addison
  • 403
  • 8
  • 24
2
votes
2 answers

Kivy - MotionEvent: on_mouse_pos

Does kivy support MouseEvent that is triggered on mouse_pos change without pressing mouse button? I found in documentation this: def on_motion(self, etype, motionevent): # will receive all motion events. …
Martin
  • 3,333
  • 2
  • 18
  • 39
2
votes
1 answer

Creating Kivy widgets in a loop

I have a kivy screen that I need to create elements in via a loop. I can do it as so: class HomeScreen(Screen): def show_tasks(self): global user tasks = DB.get_tasks(user) # Returns an array of tuples for task in…
clines
  • 725
  • 1
  • 6
  • 10
2
votes
0 answers

How to change positions of labels using kivy

I am currently programming a simple app to display some text after the press of a button. The Layout, however, is on my phone totally different from that on my pc. Changing the positions of the labels in the .kv didn't work; nothing changed. To…
1 2 3
99
100