def import_csv(self): importer = TableImporter() #just use the dialog to load and import the file importdialog = importer.import_Dialog(self.labbook_win) self.labbook_win.wait_window(importdialog) modeldata = importer.modeldata self.add_Sheet(sheetdata=modeldata) return
def importTable(self): """Import from csv file""" from Tables_IO import TableImporter importer = TableImporter() importdialog = importer.import_Dialog(self.master) self.master.wait_window(importdialog) model = mTableModel() model.importDict(importer.data) self.updateModel(model) return
def import_csv(self): importer = TableImporter() # just use the dialog to load and import the file importdialog = importer.import_Dialog(self.tablesapp_win) self.tablesapp_win.wait_window(importdialog) model = TableModel() model.importDict(importer.data) sheetdata = {} sheetdata['sheet1'] = model.getData() self.new_project(sheetdata) return
def import_csv(self): importer = TableImporter() #just use the dialog to load and import the file importdialog = importer.import_Dialog(self.tablesapp_win) self.tablesapp_win.wait_window(importdialog) model = TableModel() model.importDict(importer.data) sheetdata = {} sheetdata['sheet1'] = model.getData() self.new_project(sheetdata) return
def import_cvs(self): importer = TableImporter() #datafile = importer.open_File(self.tablesapp_win) #just use the dialog to load and import the file importdialog = importer.import_Dialog(self.tablesapp_win) self.tablesapp_win.wait_window(importdialog) modeldata = importer.modeldata #modeldata = importer.ImportTableModel(datafile) sheetdata={} sheetdata['sheet1']=modeldata self.new_project(sheetdata) return