kivy

Accessing Kivy Screenmanagaer inside a screen's __init__ method

Accessing Kivy Screenmanagaer inside a screen's __init__ method Question: I am trying to build an application that loads data from a JSON file and adds it to an MDList object. I would like the loaded items to take the user to a specific page when clicked. My implementation of the __init__ finction is shown bellow: …

Total answers: 1

Kivy find out which Button called the Function

Kivy find out which Button called the Function Question: I have a List which I go through and generate a Button for each element in the List. Now when I press the Button I would like to know what Text is inside the Button. Sadly I was not able to figure out how to do …

Total answers: 1

Kivy Does Not Update The Refreshed Data on The Screen [Video + Full Codes]

Kivy Does Not Update The Refreshed Data on The Screen [Video + Full Codes] Question: Kivy does not update the refreshed data on the screen. If i restart the app, i can see the new data after calculation. I want to see refreshed data on the screen after the calculation is done, without restarting the …

Total answers: 1

Permission BLUETOOTH for Android 13 in kivy app

Permission BLUETOOTH for Android 13 in kivy app Question: I am a beginner Kivy user. I made an app that displays Arduino data on mobile via Bluetooth. I allow access in buildozer.spec as follows: android.permissions = BLUETOOTH_ADMIN,BLUETOOTH The app worked well ,but now it can’t run on my android. I get an error like below: …

Total answers: 2

How to I exactly the position of a kivy text label on a canvas?

How to I exactly the position of a kivy text label on a canvas? Question: I have designed the following in figma. I have created a 500px x 500px window and a widget. I want to place the "in motion" text 160px from the left and 207px from the top. figma design For images, that …

Total answers: 2

Line is not drawn in Kivy python

Line is not drawn in Kivy python Question: Code: from kivy.app import App from kivy.uix.widget import Widget from kivy.graphics import Color from kivy.graphics import Line class Draw(Widget): def __init__(self, **kwargs): super(Draw, self).__init__(**kwargs) # Widget has a property called canvas with self.canvas: Color(0, 1, 0, .5, mode=’rgba’) Line(points=(350, 400, 500, 800, 650, 400, 300, 650, 700, …

Total answers: 1

Using ScreenManager in Kivy (Python) with several .py screens

Using ScreenManager in Kivy (Python) with several .py screens Question: I’ve recently started using the Kivy framework to create an app with multiple screens that I would like to merge, so that, for example, pressing a button on the login screen opens another page. I’ve been trying to use the ScreenManager library for days but …

Total answers: 2

How to get the value of the field for MDTextField input in KivyMD?

How to get the value of the field for MDTextField input in KivyMD? Question: I use kivymd. How can I get the value from MDTextField with id: sum, when clicking on the button with id: bt2. I created the def show function, which should take this very value, and tried to implement its work, but …

Total answers: 1

Buildozer – Orientation Portrait setting not working

Buildozer – Orientation Portrait setting not working Question: I am a Python Kivy learner. As part of learning, 2 months back i successfully build a calculator app through google collab. The app was working perfectly. Now when i build the same app, it builds successfully but the orientation doesnt work. It rotates to all direction. …

Total answers: 1