comparison cagou/core/cagou_main.py @ 246:15e47bbb192c

about: show full version of SàT
author Goffi <goffi@goffi.org>
date Fri, 04 Jan 2019 13:20:29 +0100
parents 5bd94bc08f5c
children cf61a011f731
comparison
equal deleted inserted replaced
245:d535446fdf45 246:15e47bbb192c
387 "icons/muchoslava/png/cagou_profil_bleu_96.png") 387 "icons/muchoslava/png/cagou_profil_bleu_96.png")
388 self._plg_wids = [] # main widgets plugins 388 self._plg_wids = [] # main widgets plugins
389 self._plg_wids_transfer = [] # transfer widgets plugins 389 self._plg_wids_transfer = [] # transfer widgets plugins
390 self._import_plugins() 390 self._import_plugins()
391 self._visible_widgets = {} # visible widgets by classes 391 self._visible_widgets = {} # visible widgets by classes
392 self.version = C.APP_VERSION # will be replaced by getVersion()
392 393
393 @property 394 @property
394 def visible_widgets(self): 395 def visible_widgets(self):
395 for w_list in self._visible_widgets.itervalues(): 396 for w_list in self._visible_widgets.itervalues():
396 for w in w_list: 397 for w in w_list:
426 except AttributeError: 427 except AttributeError:
427 pass 428 pass
428 else: 429 else:
429 sat_instance.stopService() 430 sat_instance.stopService()
430 431
432 def _getVersionCb(self, version):
433 self.version = version
434
431 def onBackendReady(self): 435 def onBackendReady(self):
432 self.app.showWidget() 436 self.app.showWidget()
437 self.bridge.getVersion(callback=self._getVersionCb)
433 self.postInit() 438 self.postInit()
434 439
435 def postInit(self, dummy=None): 440 def postInit(self, dummy=None):
436 # FIXME: resize seem to bug on android, so we use below_target for now 441 # FIXME: resize seem to bug on android, so we use below_target for now
437 self.app.root_window.softinput_mode = "below_target" 442 self.app.root_window.softinput_mode = "below_target"