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

how to have fluid image movement? | Kivy

I have a code with an image that I can move with my keyboard. At first I had a very jerky movement and so I added a kivy clock. Now when you press a key to move the image the image moves 30 times per second and then stops, which allows for a rather…
2
votes
0 answers

add an image to GridLayout in a .kv file from python

How can I add an image object to a GridLayout defined in a .kv file? Is this possible? I have tried ui.py class Field(Widget): grid = ObjectProperty() grid.add_widget(Image(source="res/Water.png")) class UI(App): def…
2
votes
1 answer

How to use Kivy Rotate in pure Python code (not kvlang)?

I want to rotate a button with the pure python code instead of the kvlang. With kvlang we can rotate a button as shown in the example. The button is rotated 45 degree around its own center. Below is the original code: from kivy.app import App from…
Fanhe Kong
  • 29
  • 5
2
votes
1 answer

how to use slider as progress bar and control audio in kivy python?

I am making a music player for android and now I am successful to play and pause the song but theproblem is that as in other music player app like Spotify or Google Play Music we have a slider at the bottom and we can use that slider to control…
2
votes
2 answers

what can I use to display paragraph texts in kivy or kivymd?

A paragraph Please what widget can I use to achieve or display a text like this in kivy or kivymd?
Capuit Cw
  • 23
  • 3
2
votes
1 answer

Embedding cefpython inside Kivy screen

I am building a simple Kivy app with 2 screens. The first screen has a simple button which, when clicked, goes to the second screen and should open a particular website (e.g. google.com) in embedded browser. I am aware that Kivy does not natively…
Shoumik Das
  • 441
  • 5
  • 16
2
votes
2 answers

Why do I keep getting an "invalid syntax" error when using angle brackets in kivy style file?

So I have been experimenting with kivy and I am watching videos that explain how to create a kivy style file. I have copied the code directly from the site, but I keep getting an "invalid syntax" error for my angle brackets? I don't understand why?…
Lezandra
  • 21
  • 2
2
votes
1 answer

KivyMD - How can I navigate around Screens using both KivyMD BottomNavigationItems and Buttons within the Screens themselves?

I am at a loss with the Kivy ScreenManager (disclaimer - I am fairly new to this). My aspiration is to build a basic app utilising the following: MDToolbar with a right_action_item to load a SettingsScreen which can be called from anywhere within…
jamesl424
  • 53
  • 7
2
votes
0 answers

How to use Android's AlarmManager in kivy to make a *function/class* of kivy program to run at given time?

I believe we can make use of android's AlarmManager to run some code at given time. I want to run one function or one class of my kivy program at given time. Is this possible ? If yes, then please help me out. If no, then atleast help me to run the…
Vishal
  • 71
  • 6
2
votes
1 answer

KivyMD - right/left_action_items causes "weakly-referenced object no longer exists"

I'm trying to learn KivyMD and decided to write a simple shopping list app. I want to add new entries to the shopping list by adding them via dialog window. I am getting an error when trying to run the below code: from kivymd.app import MDApp from…
2
votes
1 answer

Changing Transitions in ScreenManager inside Kivy (.kv) file

I have been learning Kivy with a YouTube channel. I made two screens and one screenmanager but they are classes in python code. I saw examples like WinManager = ScreenManager(transition=CardTransition()) but I didn't structure my code like that. How…
GKO
  • 23
  • 5
2
votes
0 answers

Make KivyMD android application fit all screen sizes

Goal : Make my application fit all android devices I am trying to build a game using kivy and KivyMD and I don't know how precisely how to make my code fit all android devices. In the kivyMD documentation, devs use often the "dp" metric…
Polypro
  • 57
  • 2
  • 7
2
votes
1 answer

How do you access other class methods and functions using Kivy GUI?

I'm using python and kivy to write an app. For simplicity, I want to find a way to switch between screens without having to declare a function to go to a screen in every single class. For example, in my UserLogin class, I define a function called…
J.J.
  • 95
  • 8
2
votes
1 answer

What is the correct way to put Python version and requirements in buildozer spec file?

This is really confusing when using buildozer to build Kivy apps for Android or iOS. The right way to put the dependencies and requirements in the buildozer spec file is not provided in the docs. Now I built an app using the Kivy framework and I…
basilisk
  • 1,156
  • 1
  • 14
  • 34
2
votes
1 answer

ERROR: Could not find a version that satisfies the requirement kivy-deps.angle (from versions: none)

This is the error I am getting while installing kivy-deps.angle ERROR: Could not find a version that satisfies the requirement kivy-deps.angle-dev (from versions: none) ERROR: No matching distribution found for kivy-deps.angle-dev Can anybody please…