MCPcopy Create free account
hub / github.com/BuddySirJava/SSH-Studio / _show_error_dialog

Method _show_error_dialog

src/main.py:304–313  ·  view source on GitHub ↗
(self, title: str, message: str)

Source from the content-addressed store, hash-verified

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}")

Callers 3

workerMethod · 0.95
_show_errorMethod · 0.95
_show_toastMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected