Store fresh scan results scoped to the currently active network.
(self, scan_data)
| 1836 | self.y_bottom1 = self.height - self.ragnar1.height |
| 1837 | else: |
| 1838 | logger.warning("ragnar1.bmp image not found, using default positioning") |
| 1839 | self.x_center1 = self.width // 2 # Center horizontally |
| 1840 | self.y_bottom1 = self.height - 20 # Default bottom position |
| 1841 | |
| 1842 | except Exception as e: |
| 1843 | logger.error(f"Error loading images: {e}") |
| 1844 | raise |
| 1845 | |
| 1846 | def update_ragnarstatus(self): |
| 1847 | """ Using getattr to obtain the reference of the attribute with the name stored in self.ragnarorch_status""" |
| 1848 | try: |
| 1849 | self.ragnarstatusimage = getattr(self, self.ragnarorch_status) |
| 1850 | if self.ragnarstatusimage is None: |
| 1851 | raise AttributeError |
| 1852 | except AttributeError: |
no test coverage detected