Skip to content
Advertisement

Tag: kivy

How does the ‘with’ statement work in kivy?

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 if so they automatically add

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 second

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

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 return calculated results on canvas. Func results

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 about five seconds, the

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 picture so i need to

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/JniusPrintBluetoothAppie/src/main/java/org/kivy/android I initialised the java class with pyjnius: The java code: I read from the buffer in

Advertisement