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

Vertical ScrollView inside Swiper Kivy python

I'm trying to create kivy MDSwiper with vertical ScrollView in it. Here is my code. do_scroll: True width_mult: 1 ScrollView: MDBoxLayout: orientation: 'vertical' …
handowl
  • 141
  • 1
  • 1
  • 6
2
votes
1 answer

Kivy DropDown implementation has error "Cannot add to window, it already has a parent " when calling .open(self)
My goal is a drop down list similar to those seen in Windows File Explorer: I'm experimenting with DropDown with the following code: main.py import kivy kivy.require('2.0.0') from kivy.app import App from kivy.uix.anchorlayout import…
2
votes
1 answer

'NoneType' object has no attribute 'load_module'

File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File…
yoav s
  • 23
  • 4
2
votes
2 answers

kivy error - kivy.factory.FactoryException: Unknown class

so this is my main.py code- import pyaudio import speech_recognition as sr import pyttsx3 from playsound import playsound import kivy from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.screenmanager import…
Krish
  • 31
  • 4
2
votes
1 answer

How do I get KivyMD Navigation Drawer to call another app in a separate .py file?

I know how to write an app with kivy and I understand how to make a KivyMD app that has a navigation drawer. I can make the apps run individually but how do I combine the two? I am new to coding and I am stuck here. Below are the codes for two…
Ian Rajkumar
  • 149
  • 1
  • 8
2
votes
0 answers

Python v3.9 stopped responding kivy textinput

I looked up kivy just today and I was just trying the widgets, everything worked fine until I used the TextInput and when I run it shows a black screen then notify me that python v3.9 stopped responding. When I remove the TextInput widget everything…
diifuso
  • 66
  • 8
2
votes
1 answer

ScrollView recoils/Springs back to top after scrolling down

I have added scroll view to my kivy app but to my surprise every time I scroll vertically, the screen automatically brings me back to the initial position of the output screen. Is there any way to stop the persistent recoil I face in my app? use…
2
votes
1 answer

How to make Kivy app run inside a thread?

I have a very simple Kivy app that runs perfectly like this: def run_form(): rules_form().run() if __name__ == '__main__': run_form() But I want the program to continue while the rules_form window is open. I tried the following: def…
2
votes
1 answer

Scrollable text field in kivymd

I am trying to create a text field where I can display codes and snippets without wrapping text instead I want the text to scroll text along both x and y axis. I am trying to use following code but can't do that ScrollView: CodeInput: …
Manohar
  • 126
  • 1
  • 9
2
votes
1 answer

PyInstaller Error: FileNotFoundError: [Errno 2] No such file ot directory: 'myKivyfile.kv'

So I have tried to get my python / kivy project into a standalone "exe". I succeeded in making it "onedir" but after it compiled (with no errors) into a single exe, it doesn't work. The app window just flashes and closes. Command I put in to…
2
votes
2 answers

Kivy screenmanager: switching screen after timeout with signal

Goal is to move to a settings screen when no button is pressed, text is entered or whatever for a certain time. In fact, functionality is like a screensaver of some sorts. code version 1 import signal from kivy.app import App from…
Wannes
  • 41
  • 5
2
votes
1 answer

How to open other applications through Kivy

I have a decent hold on Python, but completely new to developing android applications. Hence, I thought of using Kivy, as I do know Python. I wish to create an application that includes a button, and on clicking the button, the user is redirected to…
2
votes
1 answer

Kivy - centering BoxLayout

I'm learning Kivy and I'm trying to center the main vertical BoxLayout with the content (boxlayouts, text, inputs, image, ...). The root window is 1200px wide and the BoxLayout is 1000px. I tried to use AnchorLayout instead of the BoxLayout but the…
Wooxy
  • 51
  • 7
2
votes
1 answer

Blank value when passing values between class on kivy?

I'm going to pass values between class or Screen in this case, but the values is empty when I print it. Here's my py code: import kivy from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.gridlayout import GridLayout from…
RedBlur
  • 55
  • 1
  • 6
2
votes
1 answer

How to automatically update Kivy label created inside Python using Kivy properties

I want to implement the following: Create a Kivy label inside python using add_widget() function. However, I want to benefit from the fact that the label is automatically updated when the text variable has changed (in my case self.gui_data.number).…
Yannick
  • 39
  • 3