Questions tagged [kivymd]

KivyMD is a collection of Material Design compliant widgets. Use with the [kivy] and [python] tags

is a library that adds Material Design compliant widgets for use with .

KivyMD source code is stored at GitHub. This library is a fork of the KivyMD project the author of which stopped supporting this project. Currently KivyMD is in beta status.

KivyMD has documentation pages on ReadTheDocs.

KivyMD

1734 questions
2
votes
1 answer

AttributeError: 'super' object has no attribute '__getattr__' in python version 3.10.7 and kivyMD

what is wrong with my code??? login.py class NewApp(MDApp): def build(self): self.theme_cls.theme_style="Dark" self.theme_cls.primary_palette="Blue" self.strng = Builder.load_string(help_str) i am trying to call this…
2
votes
1 answer

KivyMD: ToolBar doesn't work on Android. App crashes

I'm stuck with a strange problem. My app works perfect with kivymd toolbar MDTopAppBar on Windows (after compiling with pyinstaller too) and Ubuntu. But, when I try to add this element even in the simpliest app and create .apk using buildozer, my…
Kreol
  • 25
  • 4
2
votes
0 answers

An Idea for an app but I don't know if kivy capable of that

I have some problem and I'll list them here: Emulator for iPhone and Android, how can I build an app for iPhone/Android using kivy but I have not emulators open source to see how my app works and performs? Do I have to always download the app to my…
2
votes
0 answers

I built the Kivymd android app with buildozer and the app crashes after loading screen

I built the app with buildozer and the app crashes after loading screen. log for logcat search my package name https://pastebin.com/BpNPsJme source code (with buildozer spec file) https://github.com/jeong-jimin-github/quiz I added pillow to the…
kuuhaku
  • 21
  • 1
2
votes
0 answers

Get image source from a different path in kivy file

I want to get an image source code from a deferent path. In my project .KV located at: LearnProject/lib/screens/home.kv And image file located at: LearnProject/assets/images/logo.png How can I get logo.png from home.kv?
2
votes
1 answer

How do I make a MDDataTable expand its columns relative to the size of the screen in Kivymd?

I'm trying to get an MDDataTable object to expand it's column's width according to the size of the screen, but I can't find a way to do it. Here's my code: from kivy.metrics import dp from kivymd.app import MDApp from kivymd.uix.datatables import…
Eduardo C.
  • 37
  • 4
2
votes
1 answer

How to do single row selection in kivyMD DataTables

I am using kivyMD DataTables widget to display my data and allow single row can be selected to do some further edit. The following is my test case. I have encountered several problems. I use on_row_press event to treat the selection, but I found…
Jilong Yin
  • 278
  • 1
  • 3
  • 15
2
votes
0 answers

MDBottomNavigation transition direction

Is there a way to change the transition direction on a MDBottomNavigation? I can't figure out how... bottom_navigation.transition.direction = 'left' is not working - i get the error AttributeError: 'MDBottomNavigation' object has no attribute…
Schnieker
  • 45
  • 6
2
votes
0 answers

Python: how to "verify" a kivy password (text input)

When I click the button "log in" I want it to see if the password is equal to "ump" in this case. I also want another log in for "admin" but I didn't include that in the if statement. Here is my main.py: from cProfile import label from codecs import…
2
votes
4 answers

kivy.factory.FactoryException: Unknown class

This is might be a naive question as I'm learning Kivy these days. Pardon me if I'm asking silly question. I'm trying to use MDTopAppBar but getting an error which says kivy.factory.FactoryException: Unknown class Here is my…
Swati
  • 43
  • 1
  • 5
2
votes
1 answer

Why my KivyMD app Crashes On Startup after converting to Android?

I have built an APP from Python Kivy & KivyMD, using Buildozer. It was converted to an APK file successfully. But when I open the app after installing, it is loaded a little while and crashes. Nothing Shows and nothing happens. But When I Converted…
I'm a Studnet
  • 130
  • 1
  • 8
2
votes
1 answer

AttributeError: 'Homepage' object has no attribute 'screen'

Still struggling with this drop-down list I am trying to make for my create case page. Keep running into error after error. A very kind person has been helping me and fixed the last error I had, but I now have another. Again, I know what it's in…
Ewan
  • 109
  • 7
2
votes
1 answer

KivyMD widgets displaying at the bottom of page in MDBoxLayout

KivyMD widgets are displayed at the bottom when using MDBoxLayout. I remember two MDTextField widgets and one MDRaisedButton, but they are located at the bottom. When using Kivy without KivyMD, there is no such problem. Here is my code: from…
LapisMYT
  • 51
  • 5
2
votes
1 answer

How to scale KivyMD application

I am new to Kivy and unsure of how to scale the screen so that if being viewed on a mobile phone or not in full screen, the application scales down to the correct viewing size. I have added screenshots of what the application currently looks like in…
Ewan
  • 109
  • 7
2
votes
0 answers

KeyError: 'pos_hint' -- KIVYMD Chip

I tried the KivyMD Chip, however, the following error was appear as follow: from kivy.lang import Builder from kivymd.app import MDApp class MyApp(MDApp): def build(self): return Builder.load_string(KV) KV = ''' MDBoxLayout: …
Loh Boon How
  • 123
  • 7