def _add_to_replace_btn_clicked(self):
    selected_items = self._imported_stages_list.selectedItems()
    if (not selected_items):
        return Status.OK
    elif (not all([selected_item.data(self._is_valid_input_key) for selected_item in selected_items])):
        required = [', or '.join(required_extension) for required_extension in self._required_extensions]
        self._give_error_message((('Could not find all required files for one of the selected stages!\nPlease sure the required files are in the same directory as the .obj,\nthen reimport the stage!\n\nRequired Extensions: ' + str(required)) + '\n\nAlso requires that all linked textures are found. (open the mtl file as txt to see the texture paths)\n\n'))
        return Status.WARN
    else:
        self._choose_stage_popup.setWindowModality(QtCore.Qt.WindowModal)
        self._choose_stage_popup.connect(self._on_choose_stage)
        self._choose_stage_popup.show()
        return Status.OK
def _add_to_replace_btn_clicked(self):
    selected_items = self._imported_stages_list.selectedItems()
    if (not selected_items):
        return Status.OK
    elif (not all([selected_item.data(self._is_valid_input_key) for selected_item in selected_items])):
        required = [', or '.join(required_extension) for required_extension in self._required_extensions]
        self._give_error_message((('Could not find all required files for one of the selected stages!\nPlease sure the required files are in the same directory as the .obj,\nthen reimport the stage!\n\nRequired Extensions: ' + str(required)) + '\n\nAlso requires that all linked textures are found. (open the mtl file as txt to see the texture paths)\n\n'))
        return Status.WARN
    else:
        self._choose_stage_popup.setWindowModality(QtCore.Qt.WindowModal)
        self._choose_stage_popup.connect(self._on_choose_stage)
        self._choose_stage_popup.show()
        return Status.OK