def METHOD_NAME(self):
    if self.emulatorRadioButton.isChecked():
        self.dataFileLabel.setEnabled(True)
        self.dataFileEdit.setEnabled(True)
        self.browseButton.setEnabled(True)
        enableSelection = len(self.dataFileEdit.text()) > 0
        self.outputLabel.setEnabled(enableSelection)
        self.outputList.setEnabled(enableSelection)
        self.fileStatsLabel.setEnabled(enableSelection)
        items = self.outputList.selectedItems()
        outputsChosen = len(items) != 0
        button = self.buttonBox.button(QDialogButtonBox.Ok)
        # print enableSelection, outputsChosen
        button.setEnabled(enableSelection and outputsChosen)