Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_settings.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/plugins/plugin_wid_settings.py Sat Apr 08 13:34:55 2023 +0200 +++ b/cagou/plugins/plugin_wid_settings.py Sat Apr 08 13:44:32 2023 +0200 @@ -52,23 +52,23 @@ self.loading_widget = Widget() self.add_widget(self.loading_widget) extra = {} - G.local_platform.updateParamsExtra(extra) - G.host.bridge.getParamsUI( + G.local_platform.update_params_extra(extra) + G.host.bridge.param_ui_get( -1, C.APP_NAME, data_format.serialise(extra), self.profile, - callback=self.getParamsUICb, - errback=self.getParamsUIEb) + callback=self.get_params_ui_cb, + errback=self.get_params_ui_eb) - def changeWidget(self, widget): + def change_widget(self, widget): self.clear_widgets([self.loading_widget]) del self.loading_widget self.add_widget(widget) - def getParamsUICb(self, xmlui): - G.host.actionManager({"xmlui": xmlui}, ui_show_cb=self.changeWidget, profile=self.profile) + def get_params_ui_cb(self, xmlui): + G.host.action_manager({"xmlui": xmlui}, ui_show_cb=self.change_widget, profile=self.profile) - def getParamsUIEb(self, failure): - self.changeWidget(Label( + def get_params_ui_eb(self, failure): + self.change_widget(Label( text=_("Can't load parameters!"), bold=True, color=(1,0,0,1))) - G.host.showDialog("Can't load params UI", str(failure), "error") + G.host.show_dialog("Can't load params UI", str(failure), "error")