Exemple #1
0
 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
Exemple #2
0
 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
Exemple #4
0
    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
Exemple #5
0
 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
Exemple #6
0
 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