def selectDisclosureSystem(parent, disclosureSystem):

    disclosureSystemSelections = disclosureSystem.dir

    # if no disclosure system to select, user may need to enable applicable plugin(s)
    if not disclosureSystemSelections and messagebox.askokcancel(
        _("Load disclosure systems"),
        _(
            "Disclosure systems are provided by plug-ins, no applicable plug-in(s) have been enabled. \n\n"
            "Press OK to open the plug-in manager and select plug-in(s) (e.g., validate or EdgarRenderer)."
        ),
    ):
        from arelle import DialogPluginManager

        DialogPluginManager.dialogPluginManager(parent)
        return None

    dialog = DialogOpenArchive(
        parent,
        DISCLOSURE_SYSTEM,
        disclosureSystem,
        disclosureSystemSelections,
        _("Select Disclosure System"),
        _("Disclosure System"),
    )
    if dialog and dialog.accepted:
        return disclosureSystem.selection
    return None
def selectDisclosureSystem(parent, disclosureSystem):

    disclosureSystemSelections = disclosureSystem.dir

    # if no disclosure system to select, user may need to enable applicable plugin(s)
    if not disclosureSystemSelections and messagebox.askokcancel(
            _("Load disclosure systems"),
            _("Disclosure systems are provided by plug-ins, no applicable plug-in(s) have been enabled. \n\n"
              "Press OK to open the plug-in manager and select plug-in(s) (e.g., validate or EdgarRenderer)."
              )):
        from arelle import DialogPluginManager
        DialogPluginManager.dialogPluginManager(parent)
        return None

    dialog = DialogOpenArchive(parent, DISCLOSURE_SYSTEM, disclosureSystem,
                               disclosureSystemSelections,
                               _("Select Disclosure System"),
                               _("Disclosure System"))
    if dialog and dialog.accepted:
        return disclosureSystem.selection
    return None