Questions tagged [kivy]

Kivy sets itself apart as a cutting-edge Python library designed for creating versatile applications with innovative user interfaces, including multi-touch capabilities, across multiple platforms.

error in kv file due to incorrect id declaration

I came across a helpful tutorial on Kivy Design Language that I would like to follow: Kivy Design Language Tutorial. Following the instructions provided in the tutorial, I have written the following code along with its corresponding .kv file: import kivy f ...

Having trouble with Kivy installation: encountering Cython/GCC error

After following the steps on the official website to install Kivy, I encountered some issues: $ sudo apt-get install python-setuptools python-pygame python-opengl \ python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev \ build- ...

Deleting a file directory in Pyrebase storage without using a token: a step-by-step guide

I am currently developing an app that utilizes Firebase and Pyrebase as a wrapper. In the documentation, I noticed that the delete function requires a userIdToken parameter like this: storage.delete("images/example.jpg", user["idToken"]) Since my app does ...

What is the process for interacting with other class methods and functions through the Kivy GUI?

I am currently developing an app using Python and Kivy. To simplify the process, I am looking for a solution to switch between screens without having to define a function in each individual class. For instance, within my UserLogin class, I have created a ...

How can we generate Kivy widgets without relying on the kv language?

Is there a method to develop Kivy widgets without relying on kv language and .kv files? I am new to Kivy, coming from a background in using Tkinter. I have been exploring Kivy for its potential in creating Android applications. While I understand that Kivy ...

Pyinstaller is generating a dist folder with no files in it

In my case, I am using Python 3.9.x and Pyinstaller 4.9 which is said to be compatible with all Python versions. Additionally, I am operating on Ubuntu 21.10. My Python project consists of one .py file and one .kv file. I even attempted it with just the .p ...

Can anyone provide guidance on resolving the attribute error within Kivy?

Hey there, I'm diving into the world of Kivy and running into some attribute errors even though I believe my code is in the right place. Check out what I've written below: from kivy.uix.widget import Widget class widget_example(GridLayout): def button_ ...

Transferring a single line of text from a file onto a Kivy label

I am looking to create a basic program that displays definitions stored in a text file. I have been trying to figure out how to load the text into a label using documentation, but so far I haven't been successful. Can anyone point me towards helpful resour ...

What are some methods for temporarily disabling touch functionality in a Kivy application?

Is there a way to temporarily disable all touch functions while content is loading? For example, I have added an MDSpinner when fetching details from a database, and during this time, I do not want users to interact with text fields or buttons on the scr ...

I encountered an import error while attempting to set up Kivy on my system

Encountering the issue of receiving the error message "Unable to import 'kivy' Pylint(E0401:import-error)" while attempting to import it into a file using the command "import kivy". Following the installation of kivy through the execution of the ...

What effect does increasing the height of a floatLayout have on where subsequent blocks are positioned on the screen?

I've encountered an issue with my Kivy code where the Float Layout is adding its children from the bottom up instead of top down. I'm trying to figure out how to make it go back to adding items from top down. from kivy.app import App from kivy.l ...

Dynamic text label generated from a variable's value

Hey there, I'm facing an issue and could really use some help: I'm trying to display the value of a variable inside a label on the next screen. from __future__ import print_function import os.path from google.auth.transport.requests import Request from go ...

Having difficulty retrieving the ID from a Kivy method

After the user logs in, I'm attempting to create a card with a scroll view on the ViewDecks screen. To achieve this, I invoked the ViewDecks.ShowDecks() method from within the login class. However, when running the code, I encounter an error message: ...

There is a compilation error occurring in the Kivy build.py script

After setting up the Kivy development environment on my Ubuntu 13.10 virtual machine, including cloning Kivy, building a distribution with distribute.sh, and using the build.py script to create an APK file for my project, I encountered an error during the ...

Tips for deploying a PyCharm project that includes Kivy and mapview integration

I have a Python Project built using Kivy and a MapView. I do my development work in PyCharm, and everything runs smoothly when I test the project within the IDE. I also decided to try compiling and running the project using the python IDLE, and surprisingl ...

Leveraging the power of sqlite3 alongside the flexibility of k

conn = sqlite3.connect('business_database.db') c = conn.cursor() c.execute("INSERT INTO business VALUES(self.nob_text_input.text, self.post_text_input.text, self.descrip_text_input.text )") conn.commit() conn.close() I am attempting to insert ...

Kivy displays a blank screen every time it runs

I'm experiencing issues with my code - it appears to be correct, but when I run it, I just see a black screen. Changing the return type to 'Builder.load_file' results in the following error message: [CRITICAL] [Application ] No window is created. Terminati ...

Shadow effects of residual widgets while navigating through the screens of a KivyMD app

Greetings to the entire community! I would like to offer my apologies if my previous post lacked necessary information. As a newcomer to this platform and to programming in general, I am currently working on designing my application layout using kivymd. Ho ...

Tips for training a Keras model while keeping the GUI responsive

I'm currently in the process of developing a GUI using the kivy framework to build a Keras model. However, I've encountered an issue where the GUI freezes when attempting to train the model. After referring to this resource (https://github.com/kivy/kivy/w ...

How can I invoke a function from the ListView using Kivy?

Having a bit of trouble figuring out how to pass a value through a procedure when a ListView item is pressed. The simplified example given below reflects my desired outcome and the structure of my main code. I am aiming to have ChangeScreen(self.index) cal ...

Transferring Access ids from .kv file to .py file in Kivy

. I am a beginner in Kivy and I am working on creating an Android app. I have almost completed the GUI, the front-end part, but I am facing a major issue. Despite searching extensively online, I have not found a solution to my problem. I am struggling with ...

Using Kivy's TabbedPanel: How can you invoke the switch_to function from a different class?

In the code snippet below, I am trying to make the button on the edit_button_tab switch to the edit_input_tab. This is crucial for me as I need to toggle between predefined classes EditButton and EditInput within a larger program. The layout contains sever ...

Unable to launch kivy application using RstDocument

When attempting to deploy a Kivy application using RstDocument, I encountered an issue. The application works perfectly on my PC. However, when I try to deploy it using RstDocument instead of Label, it fails to run. import kivy from kivy.app import App fr ...

Steps to show an image in kivy:

What is the best way to show an image in my current directory? import kivy from kivy.app import App from kivy.uix.button import Button from kivy.uix.image import Image class MyPictureApp(App): def display(self): return Image('b1.png') MyPicture ...

Scaling the dimensions of an image for rotation while considering non-square pixels

I am currently working on a Python GUI project using the Kivy framework. In my GUI, I have implemented a windrose feature where an arrow rotates around a circular design to indicate wind direction. The windrose appears circular visually, but due to the scr ...