def METHOD_NAME(self):
    panel = QWidget()
    panel.setObjectName("initialize_from_scratch_panel")
    layout = QVBoxLayout()
    target_case = CaseSelector(self.notifier)
    row = createRow(QLabel("Target case:"), target_case)
    layout.addLayout(row)
    check_list_layout, parameter_model, members_model = createCheckLists(self.ert)
    layout.addLayout(check_list_layout)
    layout.addSpacing(10)
    initialize_button = QPushButton(
        "Initialize", objectName="initialize_from_scratch_button"
    )
    initialize_button.setMinimumWidth(75)
    initialize_button.setMaximumWidth(150)
    @showWaitCursorWhileWaiting
    def initializeFromScratch(_):
        parameters = parameter_model.getSelectedItems()
        target_ensemble = target_case.currentData()
        self.ert.sample_prior(
            ensemble=target_ensemble,
            active_realizations=[int(i) for i in members_model.getSelectedItems()],
            parameters=parameters,
        )
    def update_button_state():
        initialize_button.setEnabled(target_case.count() > 0)
    update_button_state()
    target_case.case_populated.connect(update_button_state)
    initialize_button.clicked.connect(initializeFromScratch)
    layout.addWidget(initialize_button, 0, Qt.AlignCenter)
    layout.addSpacing(10)
    panel.setLayout(layout)
    self.addTab(panel, "Initialize from scratch")