kivymd

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

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

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

How to generate .exe of a kivymd application without console properly?

How to generate .exe of a kivymd application without console properly? Question: I’m trying to generating a .exe of my kivymd code. I have coded a really simple code, because i was trying to learn how to do this. My code is as follows: from kivymd.app import MDApp from kivymd.uix.label import MDLabel from kivymd.uix.screen import …

Total answers: 2

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

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