def populate_well_listWidget(self): survey_file = CONF.survey_dir / '.survey' if survey_file.exists(): for name in get_data_files(CONF.well_dir): new_item = QListWidgetItem(name, self.wells_listWidget) new_item.setFlags(new_item.flags() | Qt.ItemIsUserCheckable) new_item.setCheckState(Qt.Unchecked)
def update_well_listWidget(self): survey_file = CONF.survey_dir / '.survey' if survey_file.exists(): dnames = get_data_files(CONF.well_dir) # self.well_listWidget.addItems(dnames) for name in dnames: new_item = QListWidgetItem(name, self.well_listWidget) new_item.setFlags(new_item.flags() | Qt.ItemIsUserCheckable) new_item.setCheckState(Qt.Unchecked)
def populate_wells_comboBox(self): self.wells_comboBox.clear() survey_file = CONF.survey_dir / '.survey' if survey_file.exists(): dnames = get_data_files(CONF.well_dir) self.wells_comboBox.addItems(dnames) if self.current_well is not None: index = self.wells_comboBox.findText(str(self.current_well)) if index != -1: self.wells_comboBox.setCurrentIndex(index)
def update_well_comboBox(self): survey_file = CONF.survey_dir / '.survey' if survey_file.exists(): dnames = get_data_files(CONF.well_dir) self.well_comboBox.addItems(dnames)