Handle successful connection to puppet.
(self)
| 567 | self._monitor_thread.start() |
| 568 | |
| 569 | def _on_connected(self): |
| 570 | """Handle successful connection to puppet.""" |
| 571 | self._show_status("Connected to puppet!", "success") |
| 572 | |
| 573 | # Enable controls |
| 574 | self.expression_group.set_sensitive(True) |
| 575 | self.motion_group.set_sensitive(True) |
| 576 | self.overlay_group.set_sensitive(True) |
| 577 | |
| 578 | # Apply initial settings |
| 579 | settings = { |
| 580 | "address": self.viewer_url, |
| 581 | "model": self.current_model_path, |
| 582 | "scale": self.scale_row.get_value() * 100, |
| 583 | "extra_w": self.extra_w_row.get_value(), |
| 584 | "extra_h": self.extra_h_row.get_value() |
| 585 | } |
| 586 | self.controller.set_settings(settings) |
| 587 | |
| 588 | # Load expressions and motions after 5 seconds |
| 589 | GLib.timeout_add_seconds(5, self._load_expressions_and_motions) |
| 590 | |
| 591 | def _load_expressions_and_motions(self): |
| 592 | """Load expressions and motions from puppet.""" |
nothing calls this directly
no test coverage detected