comparison cagou/core/platform_/base.py @ 376:9ef01266e3fe

core: new extra menu: a new "extra" menu is added in CagouWidget's header selector (at the end). This activate a side menu with global actions, like showing the "about" screen. Platform specific menus can be added with `local_platform.on_extra_menu_init`.
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents 1481f09c9175
children 4d660b252487
comparison
equal deleted inserted replaced
375:ae9059b791fe 376:9ef01266e3fe
67 def on_key_back_share(self, share_widget): 67 def on_key_back_share(self, share_widget):
68 """Back key is called while being on share widget""" 68 """Back key is called while being on share widget"""
69 share_widget.close() 69 share_widget.close()
70 return True 70 return True
71 71
72 def on_extra_menu_init(self, extra_menu):
73 pass
74
72 def updateParamsExtra(self, extra): 75 def updateParamsExtra(self, extra):
73 pass 76 pass
74 77
75 def open_url(self, url, wid=None): 78 def open_url(self, url, wid=None):
76 """Open an URL in the way appropriate for the platform 79 """Open an URL in the way appropriate for the platform