diff --git a/subiquitycore/ui/utils.py b/subiquitycore/ui/utils.py index 5c855909..dd8f4269 100644 --- a/subiquitycore/ui/utils.py +++ b/subiquitycore/ui/utils.py @@ -344,9 +344,10 @@ def rewrap(text): class SomethingFailed(Stretchy): - def __init__(self, parent, msg, stderr): + def __init__(self, parent, msg, stderr, + *, btn_label: str = _("Close")) -> None: self.parent = parent - ok = other_btn(label=_("Close"), on_press=self.close) + ok = other_btn(label=btn_label, on_press=self.close) widgets = [ Text(msg), Text(""),