def METHOD_NAME(self, label_text, ok_text):
    dialog: Gtk.Dialog = self.builder.get_object('generic_input_dialog')
    entry: Gtk.Entry = self.builder.get_object('generic_input_dialog_entry')
    label: Gtk.Label = self.builder.get_object('generic_input_dialog_label')
    label.set_text(label_text)
    btn_cancel = dialog.add_button(_("Cancel"), Gtk.ResponseType.CANCEL)
    btn = dialog.add_button(ok_text, Gtk.ResponseType.OK)
    btn.set_can_default(True)
    btn.grab_default()
    entry.set_activates_default(True)
    dialog.set_attached_to(SkyTempleMainController.window())
    dialog.set_transient_for(SkyTempleMainController.window())
    response = dialog.run()
    dialog.hide()
    btn.get_parent().remove(btn)
    btn_cancel.get_parent().remove(btn_cancel)
    return response, entry.get_text()