python - In kivy using screenmanager how can I add other widgets like scatter? -
i'm developing kivy app. while i'm using screenmanager
, can add screen
in it. screen
seems can add other widgets. how can add scatter widget screen
interface performance?
class sc(scatter): pass class screen1(screen): pass class screen2(screen): pass class manager(screenmanager): pass class myapp(app): def build(self): sm = manager() s1 = screen1() sca = sc() s1.add_widget(sca) sm.add_widget(s1) return sm myapp().run()
your code does add scatter (what call sca
) screen (what call s1
).