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

Kivy button text alignment (halign) doesn't work

I want to align the text of the button to the left with halign='left' in Kivy, but it does not work and keeps it centered. This is my code: import kivy from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import…
user13622589
3
votes
1 answer

Kivy get the object that was pressed on

I have a Kivy app that has a scrollview within it. In this scrollview there's a boxlayout that holds a pretty big amount of images and it changes throughout runtime (it can go from 1 to 300 at any time). When a touchdown event happens, I need to…
3
votes
1 answer

Kivymd dialog close

I recently updated my kvmd to version 0.104.1, it included some breaking changes for dialogs. My program contains a button which when pressed shows a dialog box containing some text and 2 buttons viz OK and CANCEL. The cancel button simply closes…
user13351790
3
votes
1 answer

Python Kivy: animation won't run when called from clock event

I'm trying to periodically run the animation of canvas circle line by changing its angle using a numeric property called "level" so it refreshes every second by creating a Clock object but the animation simply won't run. In the other hand I also…
3
votes
1 answer

NameError: Factory name not defined - Kivy

I am getting error NameError: name 'Factory' is not defined when I try to import Factory in kv file. But I have already imported in py file. Below is my code, Kv file: : id: popup auto_dismiss: False title: "User…
kalyan
  • 55
  • 5
3
votes
1 answer

Kivy Apk Buildozer : ReferenceError: weakly-referenced object no longer exists

Can anyone tell me why my app is crashing. It's very strange that when i run my app for the first time it doesn't crash. but the next time i run it it crashes. I get something like this. i am using KIVYMD, KIVY, SOCKET, KIVY MAPVIEW , SQLITE3. below…
3
votes
1 answer

Kivy - Access instance created in other Screen

I created some instances of a class (Player class) in my first Screen, and would like to access these instances (and their data) in another Screen. The idea is this: Player class: instance of this class contains players name and their points.…
Pieter-Jan
  • 492
  • 4
  • 15
3
votes
2 answers

Kivy Filechooser overlapping text on scroll with screens

Versions Python: 3.7 OS: Windows 10 Kivy: 1.11.1 Kivy installation method: pip Description FileChooser overlaps text on scrolling through files list. Looks like the 1st content stays and on scroll the content of scrolled data is getting displayed…
kumar
  • 2,570
  • 2
  • 17
  • 18
3
votes
1 answer

KivyMD DatePicker not resizing with screen size

I'm not sure how to dynamically resize the MDDatePicker with the screen size, it doesn't adjust correctly like Labels and Buttons but rather adjusts erratically. I couldn't find much on KivyMD documentation like there in on Kivy widgets. You've got…
Callum
  • 195
  • 2
  • 22
3
votes
1 answer

Multiple Errors when installing Kivy

ERROR: Command errored out with exit status 1: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR:…
user11043428
3
votes
1 answer

How to enable scrollview for dynamically created labels in kivy?

My app contains 2 screens: 1st screen: welcome screen - A label to display welcome message and a button to proceed to next screen 2nd screen: Dynamically created labels I would like to implement a scrollview to my second screen which contains…
Pavan
  • 381
  • 1
  • 4
  • 19
3
votes
2 answers

Is it possible to have a folder-based structure in kivy?

I am trying to make an app. I have got it to work where all my files are in the same folder but it gets very messy and I would like to separate my files into separate folders of the structure: Start, Prelogin, andFirebaseLoginScreen`. So is what I…
3
votes
1 answer

How do I check whether Kivy UrlRequest Get is running on Android?

I am trying to scrape a website using Kivy's UrlRequest. When I run the App from Android the code enters the UrlRequest function and never returns any information that it failed, an error occurred or success. How can I "listen" for log ouput to…
Hmerman6006
  • 1,622
  • 1
  • 20
  • 45
3
votes
1 answer

How to set spinner values equal to outputted list of a python method in kivy

So I am building an application which given an input website, is able to allow the user to choose a tag (eg. div, body, article), an attribute (eg. class, style, id), and a value of an attribute and output the related HTML code of the relevant…
haggisman18
  • 105
  • 1
  • 7
3
votes
1 answer

Kivy: How to display a ScrollView from an custom BoxLayout?

I need to create a list of items with a custom row layout. Every row should have an image, one main button and two other small buttons (side by side), after pressing the main button I would like to display a short text in a scroll view under the…
AlinaC
  • 31
  • 1