Questions tagged [kivy-language]

A language created and used in the Kivy framework to describe a widget structure of a project.

Kivy language (kv, kvlang) is a language created and used in the Kivy framework to describe a widget structure of a project.

The concept behind kv is to make maintaining mainly the design part of an application simple. Kv provides features that make building an application easy and readable in large projects:

With these features kv allows very fast prototyping and agile changes to User Interface. It also facilitates a good separation between the logic of an application and its UI, therefore provides possibilities to minimize code size and maximize readability.

For real-time debugging of the kv code you can use KivyCatalog.

2724 questions
4
votes
1 answer

How to add on_release action to a list item in kivy or kivymd, python?

I want to make a music player app using kivy and it's material design in python I am successful in finding the .mp3 files and playing them But the problem is that I am not able to find out the way to bind the OneLineListItem to any function (eg. If…
Sanyam Pandey
  • 91
  • 1
  • 7
4
votes
0 answers

How to add Screen Manager to my KIVYMD code, but not in kv file only class method

I'm new here, I have a small problem in kivymd. Is there anyone here who would be able to help me? this is my main.py file from kivymd.app import MDApp from kivymd.theming import ThemeManager from kivymd.uix.slider import Slider from…
mdsanima
  • 93
  • 6
4
votes
1 answer

Google Ad Mob with Kivy on Android

Is there a way to integrate Google Ad Mob with Kivy 1.11.1 apps running on Android? I came across a package called KivMob on GitHub. Will it work with the latest version of Google api(s)? Can someone share a sample code? Is there any other way to…
Shoumik Das
  • 441
  • 5
  • 16
4
votes
2 answers

Why is kivy unable to import kivy_clock?

https://kivy.org/doc/stable/api-kivy.app.html import kivy kivy.require('1.0.7') from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): # return a Button() as a root widget return…
4
votes
2 answers

Loading images from internal storage kivy python

I am looking for a solution regarding loading images from internal storage file manager via my kivy application. for testing,i need to select the image from internal storage and then convert it into gray scale image by using opencv. I have tried…
Velmoorthi
  • 160
  • 2
  • 11
4
votes
1 answer

Python kivy: How can I fix "TypeError: object.__init__() takes no parameters"?

I have a problem with my code here. I want to implement a string with data in the kv language right in my python file to add a design to the "MDTextFieldClear". I am not sure if the error has to be in kv string but after a bit of testing with the…
Frenggie
  • 149
  • 4
  • 16
4
votes
1 answer

Kivy Display Data from pandas to Kivy

i have some data ready to be display from a pandas database, i would like to make it look good but i was just able to print it as a label. and looks awful. also i would like to make it scrolldable but i totally new in Kivy. I haven't able to make…
Cesar Rodriguez
  • 192
  • 1
  • 15
4
votes
1 answer

How to implement concept like payment gateway and wallet in kivy android and ios

I am researching lot of in kivy for payment gateway and wallet like concept and how its feasible, secure and implementation level for android and ios application. Anyone knows its production level implementation please let me know
VISHAL LIMGIRE
  • 529
  • 1
  • 5
  • 21
4
votes
1 answer

How to correctly import custom widgets in kivy

I have a widget(W2), made of other widgets (W1). Each has a corresponding .kv file as below. Running main.py, I expect to see a black background with two labels, vertically stacked. Instead, I get both labels on top of each other, so something has…
Daniel B.
  • 1,254
  • 1
  • 16
  • 35
4
votes
3 answers

How to set a label position to border in Kivy?

Hi i have problems with positioning of my labels in Kivy. I think pictures can describe my problem best. How it looks like now... How I want it looks like... I want to bind the Label 3 to the right border. I have no Idea how to do this. My…
Em Bryo
  • 63
  • 1
  • 5
4
votes
1 answer

Kivy: Popup can have only one widget as content

I am having an issue with using a popup in my .kv file. I understand that a popup can only have one widget as it's content, however if I am only passing a GridLayout as a child that includes a Label and Button, shouldn't this work? Here is my Python…
rahlf23
  • 8,869
  • 4
  • 24
  • 54
4
votes
2 answers

Kivy - Limit Values on InputText

I'm trying to make an input text that only accept float values. In addition, the value entered must be between two values. I created a class that contain a 'validate' method. If the value is not between two values, a Popup is showed. But I have a…
Eduardo
  • 687
  • 1
  • 6
  • 24
4
votes
1 answer

Python/Kivy : not working properly vertical scrollbar in dynamic row

I have two files demo.py and demo.kv I have a button +Add More which add row dynamic.I am trying to add vertical scrollbar in dynamic row using ScrollView:.But its not working properly. its mean when i add row in scrollview that row having extra…
Veragi
  • 53
  • 4
4
votes
3 answers

Kivy - How do I call a function from the ListView?

So I'm struggling with this one small bit where I cannot find a way to pass a value through a procedure when a ListView item is pressed. The example below is a simpler version of what I want to happen and how my main code is set out. The goal is so…
Alex Ford
  • 659
  • 3
  • 13
4
votes
1 answer

How do I make on_touch_down widget specific?

I'm trying to create a simple drawing app in kivy but i'm having some issues with the on_touch_down function as it regards the entire class and not just a specific widget. So when I use the on touch down and on touch move functions to draw on the…
Baxorr
  • 298
  • 6
  • 20