Skip to content Skip to sidebar Skip to footer

Kivy Error: No Screen With Name

I set up a Screen in a Kivy ScreenManager (myScreen is just a class that inherits Screen) class firstScreen(myScreen): def __init__(self,**kwargs): super(firstScreen, s

Solution 1:

Define the names inside here, not the screen classes:

sm = ScreenManager()
sm.add_widget(firstScreen())
sm.add_widget(secondScreen())

above should be:

sm = ScreenManager()
sm.add_widget(firstScreen(name="first"))
sm.add_widget(secondScreen(name="second"))

Post a Comment for "Kivy Error: No Screen With Name"