def DialogCallback( dialogReference: ui_dialog_picker.UiObjectPicker) -> None: if dialogReference.response == ui_dialog.ButtonType.DIALOG_RESPONSE_CANCEL: return resultRows = dialogReference.picked_results # type: typing.Tuple[int] if len(resultRows) == 0: return selectedModURL = options.get( resultRows[0]) # type: typing.Optional[str] if selectedModURL is None: return Generic.ShowOpenBrowserDialog(selectedModURL, returnCallback=OpenBrowserDialogCallback)