Mercurial > libervia-desktop-kivy
diff cagou/core/common_widgets.py @ 491:203755bbe0fe
massive refactoring from camelCase -> snake_case. See backend commit log for more details
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Apr 2023 13:44:32 +0200 |
parents | 3c9ba4a694ef |
children |
line wrap: on
line diff
--- a/cagou/core/common_widgets.py Sat Apr 08 13:34:55 2023 +0200 +++ b/cagou/core/common_widgets.py Sat Apr 08 13:44:32 2023 +0200 @@ -109,7 +109,7 @@ def profile(self): return self.main_wid.profile - def getSymbol(self): + def get_symbol(self): if self.identities.type == 'desktop': return 'desktop' elif self.identities.type == 'phone': @@ -158,7 +158,7 @@ def on_parent(self, __, parent): # we hide the head widget to have full screen - G.host.app.showHeadWidget(not bool(parent), animation=False) + G.host.app.show_head_widget(not bool(parent), animation=False) def on_sources(self, __, sources): if not sources or not self.carousel: @@ -178,5 +178,5 @@ def key_input(self, window, key, scancode, codepoint, modifier): if key == 27: - G.host.closeUI() + G.host.close_ui() return True