I have been playing with kivy, and I saw this: I don’t quite understand how it works. I was expecting to see something like: What am I missing? Answer with some_canvas sets an internal Kivy variable to that canvas. When canvas instructions are created they check if that variable is set to a canvas, and …
Tag: kivy
Remove object particle with kivy condition
What I want is two things: count the number of enemies on the screen. And remove all enemies from the screen with a contion. The second chose is to allow enemies to shoot randomly What I want is two things: count the number of enemies on the screen. And remove all enemies from the screen with a contion. The s…
How to make Notes using kivyMD?
How to save Data in it? For Data saving in kivyMD which method should be used such as JSON or Python Dictionary? In additional, Can you tell me how to add reminder in calendar? Thnx A lot :) Answer
Kivi: How to set Path for storing Output.txt file of Android app
I am making android app with kivy and python, I have function what will create record in TXT format, in my Project it is in same folder as the .PY file, but i know once i create .apk then it can be problem where the file will be stored. For example I would like to store that Tracking.txt file in
Display Kivy canvas inside GridLayout
I am trying to reference to Canvas within GridLayout with just drawing simple rectangle before further development. Code: main.py: my.py After running i get error: I am new in kivy, so any help is appreciated. After solving this issue, I am planning to run custom python func , run under button calc, and retur…
How to update window and simultaneously run a background process?
New to Python and Kivy. The issue might be not understanding how the main thread of Kivy works, or how to add to the main thread. The following is made-up code to demonstrate the current problem. The application starts on a first screen. On the first screen is a progress bar that starts automatically and, in …
Kivy on_release not working on touchscreen – SDL issue?
I have developed a basic app with Kivy but on_release does not work properly on my button bind. I can get on_press to work every time but on_release works sporadically (maybe one in ten to twenty times) and sometimes on a different part of the screen than you’ve touched. I’m pretty confident it…
How to zoom on a particular point with Kivy in python
So I need to create an interactive game map for other players. They could add some markers on it locally. I imported the image of the map and saw a stackoverflow subject with someone having the same problem. I got the solution but it’s zooming at the center of the picture. It’s a very large pictur…
Pyjnius custom java method returning ‘JavaException: Unable to find a None Method’ works after Public Static
So I needed to read a ByteArray from the InputStream in Android. Therefore I used this custom method in java in a kivy App using pyjnius for the same reason as stated in the link. I placed the ReadInput.java file in this directory: ~/Build_Environ/.buildozer/android/platform/build/dists/JniusPrintBluetoothApp…
Is there a way to call a function on screen load with kivy?
I have a kivy program where I need the labels to populate with the data given from a function within my screen class. It works with the update button properly however I would also like for it to populate the labels on load. Here is the python file and the kv file: py: .kv: I have tried using things like