PEATDB/Tables_IO.py
def ExportTableData(self, table, sep=None):
        """Export table data to a comma separated file"""
                        
        parent=table.parentframe                        
        import tkFileDialog
        filename = tkFileDialog.asksaveasfilename(parent=parent,defaultextension='.csv',                                                  
                                                  filetypes=[("CSV files","*.csv")])
        if not filename:                                                 
            return
        if sep == None:
            sep = ','
        model=table.getModel()    
        model.exportCSV(filename, sep)        
        return
Export table data to a comma separated file
Export table data to a comma separated file
Export table data to a comma separated file
def ExportTableData(self, table, sep=None):
        parent=table.parentframe                        
        import tkFileDialog
        filename = tkFileDialog.asksaveasfilename(parent=parent,defaultextension='.csv',                                                  
                                                  filetypes=[("CSV files","*.csv")])
        if not filename:                                                 
            return
        if sep == None:
            sep = ','
        model=table.getModel()    
        model.exportCSV(filename, sep)        
        return
def ExportTableData ( self , table , sep = None ) : parent = table . parentframe import tkFileDialog filename = tkFileDialog . asksaveasfilename ( parent = parent , defaultextension = '.csv' , filetypes = [ ( "CSV files" , "*.csv" ) ] ) if not filename : return if sep == None : sep = ',' model = table . getModel ( ) model . exportCSV ( filename , sep ) return
Export table data to a comma separated file
Export table data to a comma separated file
"""Export table data to a comma separated file"""
self
table
sep