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

Toolbar covering the label in kivymd

My MDToolbar is covering the uppermost part of my label, I want the text of my label to appear below the toolbar also the pos_hint is not working on this I want to set the position of my text of label also I want to provide padding on left and right…
Vinz
  • 255
  • 1
  • 9
2
votes
1 answer

Updating label on kivy

I want to update label on kivy by input from Screen1 and show on Screen3. At Screen1 I input at textinput id:slot and 'test' is global variable getting variable from it. and when I tried to do on Screen3. 'test' It can get variable from Screen1 but…
2
votes
1 answer

Creating multiple Enemies in kivy game

I am currently working on a space inavders game in kivy. I have a spaceship and it shoots bullets to the enemies. The enemies move to the right and when they hit the border they turn left and it happens again and again. Everything works perfect. I…
Lalli Garden
  • 259
  • 1
  • 13
2
votes
3 answers

Kivy TextInput to be above Android keyboard, however rest of screen to stay where it is

I am building a quiz game in Kivy, that has a TextInput option for users at the bottom of the screen. It's at the bottom because the clues for the answers are displayed at the top. The issue I am having is when I deploy my app to my phone, the…
c_n_blue
  • 182
  • 2
  • 10
2
votes
1 answer

Accessing canvas rectangle in kivy

I'm pretty new to kivy, and have been having this problem accessing my canvas rectangle. I need to keep it updated as I load images throughout the code and so the size of the window changes but unlike other properties such as textboxes or images, I…
2
votes
1 answer

How to add multiple widget at the same time to a scrollview?

I'm new at kivy, so I'm working on a test app. I want to create a screen with ScrollView and I want to add multiple things to a 'line' in the ScrollView, a text (description) and an image. I have tried this way: class PresentUploadedData(Screen): …
2
votes
1 answer

Kivy disable screen timeout

I am developing an app with the Kivy framework and I am trying to figure out how to avoid the system screen timeout. I would like to completely disable the screen turning off (due to screen timeout) while using the app. I checked the kivy.config…
Alexandru Rusu
  • 569
  • 1
  • 5
  • 21
2
votes
1 answer

Kivy Selection on Focus

I'm trying to have kivy select the text of a TextInput widget on focus but when I try it seems to select it when it unfocuses and retains the selection. Any ideas how I can select it on focus and on unfocus deselect? I've attached my code below if…
MitchW
  • 97
  • 5
2
votes
1 answer

Can't get ObjectProperty to work with Kivy in python

I've been trying to fine a solution for a while. I rather not create the button in python, as I'm trying to keep the style away from the functionality. It reports this error every time I try to use Object Property. I've scoured all over trying a…
Mrbeck101
  • 43
  • 5
2
votes
1 answer

kivy's Spinner isn't openning

I'm working on a project and i'm having trouble openning the spinner widget from kivy. I couldn't find any answer surfing the internet so I came here :) I tried using the Float Layout insted of Grid layout and it didn't work either. Using…
T0nd0Tara
  • 110
  • 1
  • 5
2
votes
2 answers

How do you make a checkbox checked by default in Kivy?

I have created two checkboxes in a .KV file (one for default settings and one for custom keywords) and I am trying to get the default box to be checked when the GUI opens this window initially. I am able to get the default value output to be set…
AwkwaBear
  • 21
  • 5
2
votes
0 answers

Kivy Video Player delay/lag

I'm trying to display an rtsp stream via kivy video player, this runs fine but in my video I get a 2 or 3 second delay in the stream which I would ideally like to eliminate to 0.5 to 1 seconds. Here's what I have: from kivy.app import App from…
CalMac
  • 449
  • 1
  • 4
  • 30
2
votes
2 answers

How to create a login screen using Kivy

Desired result: Currently my code is as follows: class KeypadButton(Factory.Button): def on_touch_down(self, touch): if self.collide_point(*touch.pos): FocusBehavior.ignored_touch.append(touch) return…
user12621047
2
votes
1 answer

Using add_widget in the kv file

I'm having trouble dynamically adding widgets in my kv file, everything I've seen so far has been around adding widgets in the py file. The reason I'd like to use the kv file for this is that I've got a modified Button widget I'd like to use that's…
Callum
  • 195
  • 2
  • 22
2
votes
1 answer

Python: Kivy: How to align a label itself and text box?

I've tried multiple pieces of code from here, but they all seem to align the text within the label or text box. I want to align the text box and the label vertically and horizontally. I am a beginner at kivy, so please excuse me if the answer is…
S Hashem
  • 23
  • 1
  • 4