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
2 answers

How to put multiple columns into a kivy RecycleView?

I want to put the data of a (csv-)table into a kivy recycleview. I managed to insert multiple columns with one row, if i assign a fixed text to the Labels in the kv, but i can't get it to fill the labels with data from a dictionary list. This is…
Thorka Mae
  • 93
  • 1
  • 2
  • 9
3
votes
1 answer

How to use an if statement in a .kv file

I want to load a specific image, in this case I want my game to display an image of iron man, but only when the variable 'char' is set to iron man, which the player will set if they choose to play as him. : name: "Avengers Tower" …
3
votes
2 answers

AttributeError: 'super' object has no attribute '__getattr__' Error when using BoxLayout with several kv-files in Kivy

As I am very well aware, this question has been asked several times already. But after trying the following solutions: Python - Kivy: AttributeError: 'super' object has no attribute '__getattr__' when trying to get self.ids Python/Kivy…
3
votes
1 answer

Dynamically add and remove button widgets in a boxlayout

Need help in figuring out code that will allow me to search something in the textinput and have all items that match the search appear in the boxlayout. I have only just started kivy (3 days ago). main.py # import kivy & functions/widgets. import…
Jacob Cook
  • 61
  • 1
  • 7
3
votes
1 answer

Accessing value of child widget property in kivy lang and python

How can I overwrite the default value of a Kivy widget's child? i.e. MyWidget.label is 'default' but I want to change it to e.g. 'purple turtle' when a child of MyRootWidget? I can access the children of children as I've done in…
Daniel B.
  • 1,254
  • 1
  • 16
  • 35
3
votes
2 answers

Pass Variables from MQTT to Kivy

I try to pass values from MQTT to Kivy dashboard with a navigation drawler. Can someone give me a hint how I can change the variables? Here is my sample code. MQTT is working. I use Python 3.6.6 and 1.10.1. mainmenu.py from kivy.app import App from…
3
votes
1 answer

Valign not working in kivy?

I have this kivy file here: : Label: text: "[b]Help Page[/b]\n" font_size: 30 markup: True valign: "top" color: 0,0,0,1 Label: text: "[b] How To Use:[/b]\n" font_size: 30 …
Jezreel Martin
  • 75
  • 1
  • 10
3
votes
1 answer

Python kivy (kivyMD) how to fetch values of MDDropdownMenu

I am trying to fetch the selection of a MDDropwdownMenu inside my kv file I am using a MDRaisedButton by the following code MDRaisedButton: id: select_warning_image_Button text: "Menu labels" …
MrYouMath
  • 547
  • 2
  • 13
  • 34
3
votes
2 answers

Retrieve image from sqlite3 and display in Kivy image widget - ValueError

REQUIREMENT I'm trying to retrieve an image from Database and set this image to kivy image widget, this operation throws a ValueError, unsure of the cause. Welcome any inputs. Database: Sqlite3 Table name: Users Columns: UserID, UserName, UserImage …
Berch
  • 185
  • 1
  • 13
3
votes
0 answers

Buildozer compilation with firebase-admin and google-cloud-firestore: "No module named google.auth"

I'm trying to use Firestore in Kivy app and compile with Buildozer. The app works perfectly on Windows. In addition to kivy import, I imported: pip install firebase-admin pip install google-cloud-firestore In the VM of kivy, I put: requirements =…
3
votes
2 answers

Python/Kivy : How to put dynamic label widget and value

I have two file test.py and test.kv . i run test.py then shows show button. When i click on show button then def abc call.Can someone tell me how to show array in dynamic label and value(Item1=5000.Item2=1000). Item1 5000 Item2 1000 I am using…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56
3
votes
1 answer

Alignment problems with custom widget using RecycleView in Kivy

So I have this chatting app like structure I have made using Kivy's RecycleView to instantiate a custom widget (named 'Row') and I pass it values however I wish. It works fine if the Row custom widget only contains a Label child, the moment I add an…
3
votes
1 answer

How to get a text input box to display with Kivy?

I'm currently writing an app in Kivy for a school project (I have very much had to jump in the deep end with Kivy). I have written the kv code for the text input, which you can see below: AnswerInput: : orientation:…
3
votes
1 answer

Newbie at Kivy trying to create stopwatch

I'm attempting to create a stopwatch in Kivy. I've completed a skeleton on Sublime Text 3 (as shown in the code below). When I run the code on Sublime Text, a window opens, but Python crashes in 4.1s. Here is the code in question: import kivy from…
3
votes
1 answer

get value of dynamic add textbox

I have two file test.py and test.kv In test.kv text: "+Add More" which add row dynamic vertical position.I am creating dynamic id in .py self.add_widget(Row(button_text=str(self.row_count),id=str("test"+str(self.row_count)))) and in .kv file i am…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56