Mehrere returns in python Kivy ausführen?
Hallo, ich würde gerne bei meinem Python Programm mehrere Returns ausführen, einmal
return self.window
und einmal
return MainWindowWidget()
.Gibt es eine Möglichkeit dazu? Ich habe schon
return (self.window, MainWindowWidget())
probiert, allerdings kommt dann der folgende Errror:
App.root must be an _instance_ of Widget
Traceback (most recent call last):
[File BlaBlaBla, halt die Errors von Kivy]
Exception: Invalid instance in App.root
Python