How do I fix this? ValueError: KivyMD: App object must be inherited from `kivymd.app.MDApp`

485 views Asked by At

I just cannot understand why it doesn't, I'm trying to create this simple program but it gives me this error. my code is:

main.py

from kivy.app import App
from kivymd.theming import ThemeManager

class Mainapp(App):
        theme_cls = ThemeManager()

Mainapp().run()

helper.kv

NavigationLayout:

   MDNavigationDrawer:

   ScreenManager:
1

There are 1 answers

0
John Anderson On

You need to change:

class Mainapp(App):

to:

class Mainapp(MDApp):