def getConfigSuccess(self, req): conf["mainConfig"] = network.NetworkService.decode(req) if not self.adminScreen: self.adminScreen = AdminScreen() self.adminScreen.invoke()
def build(self): config = self.config AppTheme = config.get('Themes', 'active'), Window.fullscreen = 'auto' Window.show_cursor = False sm = BarScreenManager(transition=SlideTransition(), Theme=AppTheme[0]) sm.Theme = AppTheme[0] sm.add_widget(HelloScreen(AppTheme[0], name='Welcome')) sm.add_widget(SelectionScreen(AppTheme[0], name='DrinkList')) sm.add_widget(AdminScreen(AppTheme[0], name='Admin')) sm.add_widget(BlackScreen(name='black')) sm.current = 'Welcome' return sm