PEATDB/Ekin/IO.py
def import_multiple(self,event=None, default_extension='.txt'):
        """Import a single or multiple files"""

        # populate file list here
        filelist = self.open_filelist(default_extension=default_extension)      
        self.filename = filelist[0]        
        self.file_list = filelist
        
        #get all lines from file and put in variable
        self.lines = self.get_lines(self.filename)
        #get options for import and then do import
        status = self.import_csv_dialog()
        self.ekin_win.wait_window(self.ask_csv)
        if status == 0:
            return None
        datasets = self.do_import_data()
        return datasets
Import a single or multiple files
Import a single or multiple files
Import a single or multiple files
def import_multiple(self,event=None, default_extension='.txt'):
        filelist = self.open_filelist(default_extension=default_extension)      
        self.filename = filelist[0]        
        self.file_list = filelist
        self.lines = self.get_lines(self.filename)
        status = self.import_csv_dialog()
        self.ekin_win.wait_window(self.ask_csv)
        if status == 0:
            return None
        datasets = self.do_import_data()
        return datasets
def import_multiple ( self , event = None , default_extension = '.txt' ) : filelist = self . open_filelist ( default_extension = default_extension ) self . filename = filelist [ 0 ] self . file_list = filelist self . lines = self . get_lines ( self . filename ) status = self . import_csv_dialog ( ) self . ekin_win . wait_window ( self . ask_csv ) if status == 0 : return None datasets = self . do_import_data ( ) return datasets
Import a single or multiple files
Import a single or multiple files
"""Import a single or multiple files""" # populate file list here #get all lines from file and put in variable #get options for import and then do import
self
event
default_extension