예제 #1
0
 def save(self):
     if self.filename is not None:
         CSV.write(self.filename, self.table_model.get_list())
     else:
         self.save_as()
예제 #2
0
 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)