(self, title: str, message: str)
| 302 | logging.warning(f"Failed to load CSS styles: {e}") |
| 303 | |
| 304 | def _show_error_dialog(self, title: str, message: str): |
| 305 | dialog = Gtk.MessageDialog( |
| 306 | transient_for=self.main_window, |
| 307 | message_type=Gtk.MessageType.ERROR, |
| 308 | buttons=Gtk.ButtonsType.OK, |
| 309 | text=title, |
| 310 | secondary_text=message, |
| 311 | ) |
| 312 | dialog.connect("response", lambda d, r: d.destroy()) |
| 313 | dialog.present() |
| 314 | |
| 315 | def _show_error(self, message: str): |
| 316 | logging.error(f"Application Error: {message}") |
no outgoing calls
no test coverage detected