Most voted "kivy" questions
Use if the question involves using the Kivy library.
Learn more…44 questions
Sort by count of
-
7
votes2
answers634
viewsHow to use different . Kv files in a Kivy application?
I am trying to create a game using Kivy in Python language and I would like to know how I can use different files .kv to be used in the application as levels for the game. Example: main.py game.kv…
-
3
votes1
answer749
viewsError in kivy installation
I can’t install the kivy on my computer, I’ve never touched Pip before, I’m putting the commands on cmd and gives error. I am running the following commands: python -m pip install docutils pygments…
-
3
votes1
answer133
viewsHow to test the application with Kivymd?
I’ve developed a small test app that checks both the battery status and whether the phone is being charged. The app is running local from python main.py, but when I install it in Android Studio…
-
2
votes1
answer46
viewsUpside down widgets in Kivy
I have a problem running any Kivy screen, because it always appears upside down. This problem is only with this specific library, the other ones I use work normally. A simple code like: from…
-
2
votes0
answers210
viewsError trying to compile python (kivy) in apk for android (using buildozer)
# Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Install platform # Apache ANT found at…
-
2
votes1
answer41
viewsKivy - Change keyboard cursor position (Caret) after formatting textinput with mask
In a Textinput where the user type the CPF, control the validation and formatting in an on_Text event. After typing the 11 digits and validating the CPF, I format with the mask, however, after…
-
1
votes0
answers494
viewsHow to modify the text of a button by pressing it?
I am very new in this field of programming with graphical interfaces and I am with a project with Arduino... The communication part is OK, but I can’t do anything simple like: Change both the color…
-
1
votes1
answer217
viewsHelp with kivy (error: Attributeerror: 'weakref' Object has no attribute 'cline_in_traceback')
I’m learning the kivy (so I’m pretty virgin in the Gui subject) and I came across this mistake: important part: Attributeerror: 'weakref' Object has no attribute 'cline_in_traceback' full run: [INFO…
-
1
votes1
answer535
viewsAccess functions within classes in kivy + python
This is the file . py class Tela(): pass class teste(): def chama(self): pass def save_d(self): pass class Prg(App): def build(self): return Tela() Prg().run() This is the file . Kv <Tela>:…
-
1
votes1
answer340
viewsAdd functions in kivy
I’m a beginner in python and in gera programming, I’m doing a project for the school science fair and need help to add this function to my graphical interface (I’m using python 3.6 and I’m on…
-
1
votes1
answer62
viewsPython: because when declaring the constructor of the Daughter I also have to declare the constructor of the Mother?
I am developing a small application in Python and I came across a question that I could not draw a concrete conclusion about why this should happen. Simply put, the problem is this:: The following…
-
1
votes1
answer167
viewsHow to make the window transparent background in Kivy
Hello, I am trying to make a program that creates a window without borders and with transparent background. The first part I got: Window.borderless = True But I haven’t been able to make the…
-
1
votes1
answer76
viewsHow do I use a virtual keyboard in a Kivy or Kivymd application?
I am developing an application in python with graphical interface made in Kivymd. My question is the following, when I click in some field textinput I want a virtual keyboard to appear so I can…
-
1
votes0
answers73
viewskivy : The term 'kivy' is not recognized as cmdlet name, function, script file or operable program
When trying to run script from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput class TelaLogin(GridLayout):…
-
1
votes0
answers44
viewsBuildozer does not compile - Failure
I am trying to compile a Python code with Buildozer. The project has the icon.png, presplash.png, main.py and main.kv files. I tried even with Crystax, but continued with the same error... How do I…
-
0
votes1
answer689
viewsHow is the text of the python-kivy text_input used?
I’m having trouble using text_input text to store in the database. Python code: from kivy.app import App from kivy.uix.screenmanager import ScreenManager, Screen from kivy.core.window import Window…
-
0
votes1
answer46
viewsHow to make one class interfere with another with python
I want to make a switch button with kivy style, when one is true, the other is false, however, when I change a variable in the class of the first, it is not changed in the second, and remains with…
-
0
votes1
answer99
viewsHow to schedule a schedule with kivy
I want to make an event happen for 2 seconds at the speed of 29/30, after 5 seconds passed since the beginning of the program, with the following code: from kivy.app import App from…
-
0
votes1
answer177
viewsHow to dynamically change an image in a kivy label
I want to dynamically change an image on a kivy label. every time the variable increases a number the label should change the image in python def mudaimagem(self): erros = self.qtd_erros if erros ==…
-
0
votes1
answer634
views -
0
votes1
answer56
viewsMake the camera fill the entire screen with Python/Kivy
I’m not facing errors, but when accessing the camera using kivy, I don’t know how to make the image occupy the whole size of the window. Below is the part of Kv file that does this:…
-
0
votes1
answer431
viewsPython - Kivy - pyInstaller - Generate executables
Good morning, everyone. I’m on a kivy project where I’m working with, or at least trying to work on MVC mode. So I have view, model, controller folders. In view folder I have the ". Kv" kivy files.…
-
0
votes0
answers232
viewsBlack screen when running a simple interface made in Kivy - Python
I’m learning about using multiple screens in the kivy (using Screenmanager). However, when I run the code below I come across a black screen. No error occurs, but I could not find out which error.…
-
0
votes1
answer491
viewsHow to add an image to Kivy Python
I need to add an image to my screen and was following what I was doing in all other widgets. My code: class MainApp(App): def build(self): layout1 = FloatLayout() button = Button(text='iniciar',…
-
0
votes1
answer183
viewsKivy Filechooser how to select a directory
I need to create an interface where the user can select a directory, my code: class MainScreen(FloatLayout): def __init__(self, **kwargs): super(MainScreen, self).__init__(**kwargs) b1 =…
-
0
votes1
answer92
viewsHow to pass variable between class functions?
I need to pass the variable price for the function whatever of Tela4. I am new to both programming and the language itself and I have serious problems with this solution despite imagining that it is…
-
0
votes0
answers20
viewsdoubt in kivy archive K
I’m having a doubt on a tag in Kv file that I can’t understand its function <TableData>: rgrid: rgrid bar_width: 25 scroll_type: ['bars'] bar_color: [0.2, 0.7, 0.9, 1] bar_inactive_color:…
-
0
votes1
answer126
viewskivy recycleview with line with multiple items
How to make a recycleview with multiple items in a row? The examples I studied using Recyclegridlayout the columns become independent and so does not look good. An example of how I wanted to do:…
-
0
votes1
answer70
viewsDoes the kivy use native resources?
I wonder if the kivy uses native Android system features.
-
0
votes1
answer274
viewsKivy: Screenmanager() to Clear Widgets before screen transition
I’m building an application with Python and Kivy. To toggle the screens use Kivy’s Screenmanager. Ex.: Button: text: 'Sair de Tela 2 e voltar para Tela 1' size_hint_y: None height: 100 on_press:…
-
0
votes2
answers143
viewsKivy: INVALID PROPERTY NAME
I created a program in Python and Kivy, but it only gives error! PYTHON PROGRAM: kivy.require("1.11.1") from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import…
-
0
votes1
answer503
viewsPython and Kivy: How to select and copy all text from a Text Input
Hello! I’m trying to learn Kivy... 1) I would like to select all text within a Text Input in Kivy. Which attribute should I study to change my code myself?; 2) After selecting all the text, the copy…
-
0
votes1
answer69
viewsDoubt in the kivy documentation, Textinput
In kivy textinput documentation you have the following code snippet def on_enter(instance, value): print('User pressed enter in', instance) textinput = TextInput(text='Hello world', multiline=False)…
-
0
votes2
answers230
viewsWhat is the size_hint_x attribute in Kivy for?
During my studies in the Kivy framework, I discovered two attributes of the object BoxLayout called size_hint_xand size_hint_y that by what they say, they fit the size of a widget to the size of the…
-
0
votes0
answers33
viewshow to send a form that the user has filled in to my email with python kivy?
My goal is that the form filled by the user send me an email with the fields filled, when the user click 'complete registration' My file.py class Cadastro(Screen): def pop(self): box =…
-
0
votes1
answer55
viewsHow to assign a function to a kivy button?
I am a beginner in python and I want that whenever a certain button is pressed, run a function. Here is the code: application py. import kivy kivy.require("1.8.0") from kivy.app import App class…
-
0
votes1
answer26
viewsProblems running Buildozer kivy
Could you help me? I am several days trying to run the buildozer on the virtual machine configured by the kivy itself, however all the solutions I found on the net and implemented, returns me the…
-
0
votes0
answers22
viewsSkip Textinput to kivy
I am developing an application that collects data from the user through Textinput widgets. I can do this task of "taking" user data and storing it. However, my software only accesses the text fields…
-
-1
votes1
answer178
viewsThe code does not work as expected. (python and kivy)
I cannot change the name of Label 1 or Label 2 through the click function. The program shows only "hi" on the console. Python code: import kivy kivy.require("1.9.1") from kivy.app import App from…
-
-1
votes1
answer103
viewsBuildozer failed to execute last command - Kivy
Hi, I’m trying to create an apk with buildozer,but it’s giving an error, I need help to understand it and solve. I use Xubuntu and have updated absolutely everything. Remote: buildozer android debug…
-
-1
votes1
answer26
viewsIs there any reason why the screen is completely black in the kivy program?
I’m running into a very annoying problem trying to run the program. I looked at questions similar to mine on the site, but they didn’t give me much light. I need to do a job, but every time I create…
-
-2
votes1
answer103
viewsChange in button text with Kivy language
I can’t find a way to keep changing the button text every time I click it. I can change the text only once. Every time it is clicked I want to appear on lamp/off lamp. ]2…
-
-2
votes1
answer29
viewsHow to take 6 photos In a row just using Kivy?
I wanted an example of how to take 6 photos in a row using kivy.uix.camera. Note: Without having to consult the Kivy sample site, all the examples I saw had comments talking to read the Kivy…
kivyasked 4 years, 8 months ago Levi Júnior 1 -
-2
votes1
answer59
viewsPlyer installation didn’t work, how to make it?
I’m trying to make an app that can send a notification to the user on his phone. For this I found the plyer package, so I used the linux commands to do the installation: `git clone…