(self, settings: dict)
| 160 | script = "set_mouth_y({})".format(amplitude) |
| 161 | self.webview.evaluate_javascript(script, len(script)) |
| 162 | |
| 163 | def set_settings(self, settings: dict) -> None: |
| 164 | super().set_settings(settings) |
| 165 | if "extra_scale_w" in settings: |
| 166 | self.extra_scale_w = settings["extra_scale_w"] |
| 167 | if "extra_scale_h" in settings: |
| 168 | self.extra_scale_h = settings["extra_scale_h"] |
| 169 | if "model" in settings: |
| 170 | self.model = settings["model"] |
| 171 | if "scale" in settings: |
| 172 | self.scale = settings["scale"] |
| 173 | if "extra_w" in settings: |
| 174 | self.extra_scale_w = settings["extra_w"] |
| 175 | if "extra_h" in settings: |
| 176 | self.extra_scale_h = settings["extra_h"] |
| 177 | if "address" in settings: |
| 178 | self.address = settings["address"] |
| 179 | GLib.idle_add(self.change_address) |
nothing calls this directly
no outgoing calls
no test coverage detected