comparison cagou/core/cagou_main.py @ 377:b2a87239af25

android: platform specific menu to disconnect profile: This menu is platform specific because it also unset the autostart parameter (which is handler in a specific way on Android).
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents ae9059b791fe
children 4d660b252487
comparison
equal deleted inserted replaced
376:9ef01266e3fe 377:b2a87239af25
305 Window.bind(on_keyboard=self.key_input) 305 Window.bind(on_keyboard=self.key_input)
306 wid = CagouRootWidget(Label(text="Loading please wait")) 306 wid = CagouRootWidget(Label(text="Loading please wait"))
307 local_platform.on_app_build(wid) 307 local_platform.on_app_build(wid)
308 return wid 308 return wid
309 309
310 def showWidget(self): 310 def showProfileManager(self):
311 self._profile_manager = ProfileManager() 311 self._profile_manager = ProfileManager()
312 self.root.changeWidget(self._profile_manager) 312 self.root.changeWidget(self._profile_manager)
313 313
314 def expand(self, path, *args, **kwargs): 314 def expand(self, path, *args, **kwargs):
315 """expand path and replace known values 315 """expand path and replace known values
496 def _getVersionCb(self, version): 496 def _getVersionCb(self, version):
497 self.backend_version = version 497 self.backend_version = version
498 498
499 def onBackendReady(self): 499 def onBackendReady(self):
500 super().onBackendReady() 500 super().onBackendReady()
501 self.app.showWidget() 501 self.app.showProfileManager()
502 self.bridge.getVersion(callback=self._getVersionCb) 502 self.bridge.getVersion(callback=self._getVersionCb)
503 self.app.initFrontendState() 503 self.app.initFrontendState()
504 if local_platform.do_postInit(): 504 if local_platform.do_postInit():
505 self.postInit() 505 self.postInit()
506 506