parameters: (self)
docstring: export table to a file
          :return:
docstring_summary: export table to a file
          :return:
docstring_tokens: export table to a file : return :
function: def do_export_table(self):
          """
          export table to a file
          :return:
          """
          default_dir = os.getcwd()
          output_file = QFileDialog.getSaveFileName(self, 'Export table to csv file', default_dir,
                                                    'Data Files (*.dat);;All  Files (*.*)')
          if not output_file:
              return
          if isinstance(output_file, tuple):
              output_file = output_file[0]
  
          # write
          self.ui.tableWidget_spreadsheet.export_table_csv(output_file)
function_tokens: def do_export_table ( self ) : default_dir = os . getcwd ( ) output_file = QFileDialog . getSaveFileName ( self , 'Export table to csv file' , default_dir , 'Data Files (*.dat);;All  Files (*.*)' ) if not output_file : return if isinstance ( output_file , tuple ) : output_file = output_file [ 0 ] # write self . ui . tableWidget_spreadsheet . export_table_csv ( output_file )