kivy

kivy app closes immediately i launch it on phone

kivy app closes immediately i launch it on phone Question: hey i have been compiling several kivy apps and they have been working just fine on my phone. however, recently all apps have been crashing immediately i launch them on my phone. i have been using google colab and python. it might be important to …

Total answers: 3

Kivy canvas doesn't show

Kivy canvas doesn't show Question: I am trying to use canvas. I didn’t create .kv files. It should show up a white line. from kivy.graphics import Line from kivy.uix.widget import Widget # Canvas from the code class CanvasExample3App(App): class CanvasEx3(Widget): def __init__(self, **kwargs): super().__init__(**kwargs) with self.canvas: Line(points=(0, 0, 300, 500), width=2) CanvasExample3App().run() It shows nothing. …

Total answers: 1

Making a layout that automaitcally has the correct spacing

Making a layout that automaitcally has the correct spacing Question: How do I create a layout object (BoxLayout, GridLayout etc…) where If I pass it x objects and the layout object has a height of y then it automatically assigns a space between objects so that they are all evenly spaced out. I tried to …

Total answers: 1

plyer, kivy. dont understand this program. what changes must I do?

plyer, kivy. dont understand this program. what changes must I do? Question: I’m new to plyer and kivy I have this program: import kivy from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.popup import Popup from plyer import tts kivy.require(‘1.8.0’) class Text2SpeechDemo(BoxLayout): def do_read(self): try: tts.speak(self.ids.notification_text.text) except NotImplementedError: popup = ErrorPopup() popup.open() class Text2SpeechDemoApp(App): …

Total answers: 1

I add FloatLayout widgets in a loop, but only the last one has a background

I add FloatLayout widgets in a loop, but only the last one has a background Question: I created my own widget class and assigned a default background to it, in the python file, several are created in the loop, but the background image is only visible on the last one created, why is this happening? …

Total answers: 1

Kivy app not detecting touch events when using cv.VideoCapture()

Kivy app not detecting touch events when using cv.VideoCapture() Question: I am working on a Kivy app. At some point, the user will have to touch the screen to indicate where the corners of a tennis court are. I want to take the coordinates of this touch, and create a ROI. I did this using …

Total answers: 1

Why does Python fail at finding my Kivy id?

Why does Python fail at finding my Kivy id? Question: I am trying to dynamically create OneLineListItems on my main Screen, but the id is not recognized. I tried a lot, but I’m not coming to a solution. main.py : class CustomDialogContent(MDGridLayout): pass class Content(BoxLayout): manager = ObjectProperty() nav_drw = ObjectProperty() pass class Demo(ScreenManager): pass …

Total answers: 1

How can I position my kivy app window in the right bottom corner

How can I position my kivy app window in the right bottom corner Question: I have a kivy desktop app and want to start it in the corner at the right. Currently, i can only apply the position from the left, top… from kivy.config import Config Config.set(‘graphics’,’position’,’custom’) Config.set(‘graphics’,’resizable’,0) Config.set(‘graphics’,’left’,20) Config.set(‘graphics’,’top’,50) Config.write() Asked By: Medera || …

Total answers: 2

KivyMD AttributeError: Content/TwoLineIconListItem object has no attribute '_disabled_count'

KivyMD AttributeError: Content/TwoLineIconListItem object has no attribute '_disabled_count' Question: Starting from an example of the Kivy MD Expansion Panel, I would like to customize the content of the panel. The example shows the same content for each expansion panel. I would like to set values of the fields ‘text’ and ‘secondary text’. So I modified …

Total answers: 2

How to make widgets appear from the bottom in scrollview in Python Kivy?

How to make widgets appear from the bottom in scrollview in Python Kivy? Question: how cen I make these dynamically added widgets appear from the bottom of the scrollview instead of the top. Kind of like WhatssApp or Telegram or Messenger. I am a bit stuck on this one. I tried with PushMatrix and PopMatrix, …

Total answers: 1