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

I want my app to switch screen when I click on tile using a function in Kivymd but when I do so i get the following error

from kivymd.app import MDApp from kivy.lang.builder import Builder from kivy.uix.screenmanager import ScreenManager, Screen from kivy.core.window import Window from kivy.factory import Factory from kivy.uix.label import Label import json import…
Nitish
  • 3
  • 1
0
votes
1 answer

How do I make a dropdown menu in KivyMD, Python

Hi I was wondering how to make a dropdown menu and I cant figure it out I have read the documentation but I do not understand so I would be grateful if someone told my the problem with my attempt at is in my code. PYTHON FILE: from kivymd.app import…
GCIreland
  • 145
  • 1
  • 16
0
votes
1 answer

Use ids in on_start() function kivy Python

So I am building a general knowledge quiz game, and upon startup of the app, the player's score (that is kept in a .txt file) should be displayed in a label. I've tried to use the on_start() function for this, but I can't seem to access the ids of…
Jacques
  • 135
  • 1
  • 1
  • 6
0
votes
1 answer

Kivy AttributeError: 'super' object has no attribute '__getattr__' (Tried all previous solutions)

This Has To One OF The Most Annoying Errors In Python That Have So Many Solutions Depending On The Question My Files Main.py # imports from kivy.app import App from kivy.lang import Builder from kivy.uix.screenmanager import Screen,…
Crypto
  • 337
  • 3
  • 11
0
votes
1 answer

How to refresh GridLayout in Kivy with kv file

I need help. I created a small mobile application with Kivy. I have two screens: ScreenList and ScreenDetail. However the screen(ScreenList) containing GridLayout does not refresh ScreenList: contains a list of items ScreenDetail: Contains the…
Bak
  • 411
  • 1
  • 5
  • 19
0
votes
2 answers

Using hex color code from py file in kv file

I am making this program that deals with a lot of colors and it gives the user the freedom to change many of them. In one part of my program I use markup for one of my labels and and I realized something about the 'color' tag. When my program starts…
Omid Ki
  • 155
  • 3
  • 13
0
votes
1 answer

'TypeError' when using ColorProperty for Animation

I have an application which works with colors a lot. For ease of writing the program I have defined many of the color values as ColorProperties so that whenever the value changes the widgets adapt and I can use the observer-pattern on them. In one…
Omid Ki
  • 155
  • 3
  • 13
0
votes
1 answer

KivyMD toast appearing at the center of the screen when compiled to APK

I'm New To Kivymd And working on a small project to learn it myself :) I found in kivymd KitchenSink Demo to How to use toasts. Here is The Demo code: from kivymd.app import MDApp from kivymd.toast import toast from kivy.lang import Builder KV =…
XBOT_ADMIN
  • 61
  • 3
0
votes
1 answer

Clock warning when using MDRectangleFlatButton and MDRaisedButton

I am making a desktop application using kivy & kivymd and when creating the settings screen for the app I used two MDRectangleFlatButon and MDRaisedButtons but to make them scalable, I gave both of them a size_hint_x of .5 for each to take up half…
Omid Ki
  • 155
  • 3
  • 13
0
votes
1 answer

KivyMD on changing screen not creating MDList Items widget using root.ids and showing error

I am trying build an app in Python using Kivymd and i just started learning this kivymd framework so the problem i am facing is when i am trying to change screen from LoginScreen to HomeScreen, it raises error. I am unable to understand what's wrong…
0
votes
1 answer

cannot remove widget in Kivy

i cannot remove widget using the screen with kivy python, i dont know why it just does not do anything the code was suppose to remove textinput with id:name on the first screen but it just does not do anything and no error message. here is all of…
0
votes
1 answer

How To Use Functions From Another Python File Through Kivy File

ok so my goal is to have a very clean slate as I like it when my code is organized, but that has also caused me too much trouble. I have 3 .py files: Main.py: # imports from kivy.app import App from kivy.lang import Builder from…
Crypto
  • 337
  • 3
  • 11
0
votes
1 answer

VKeyboard in kv file not work for TextInput

I want to Write something in my TextInput Box with My VKeyboard in kivy language . but it's not work. I've use json for VKeyboard becouse I not found another way for it. if you know how can I use VKeyboard plz tell me . I want to use VKeyboard on…
siitaw
  • 107
  • 3
  • 12
0
votes
1 answer

Is that possible to set the size of a text dynamically in Python Kivy App?

I am Building a app using Kivy , KivyMD in Python and I face a problem , the size of the text that I set for a Label is much bigger to a small devices and very small for a bigger devices like Tablet is that possible to set the size of a text…
Rahul shan
  • 15
  • 3
0
votes
1 answer

Saving a canvas as an image in kivy to a certain file path specified in filechooserview

I'm creating a drawing app as one of my first kivy projects as a learning experience, and one of the core features on it is a save_as method where you get to save the image you drew on canvas at a specified filepath as a png. I'm using the…
1 2 3
99
100