Skip to content

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 …

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

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 …

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…