def save(self): if self.filename is not None: CSV.write(self.filename, self.table_model.get_list()) else: self.save_as()
def open(self): filename = QFileDialog.getOpenFileName(self, caption="Open CSV-File", filter="CSV-File (*.csv)")[0] if len(filename) > 0: self.filename = filename datalist, header = CSV.read(self.filename) self.update_table_model(datalist, header)