def save_file(self, param=None):
        param = param if isinstance(param, str) else param.keysym # which is the letter with the CTRL-
        if param == 'r':
            saved_files = self.controller.save_current_buffers(log_type='raw', log_format = 'both')
        elif param == 'f':
            saved_files = self.controller.save_current_buffers(log_type='filtered', log_format = 'both')
        elif param == 'e':
            saved_files = self.controller.save_current_buffers(log_type='raw', log_format = 'supersid_extended')
        elif param == 's':
            filename = self.AskSaveasFilename()
            if filename:
                saved_files = self.controller.save_current_buffers(filename, log_type='filtered', log_format = 'supersid')
        MessageBox.showinfo("SuperSID files saved", "\n".join(saved_files))
Save the files as per user's menu choice
dataset/ETHPy150Open ericgibert/supersid/supersid/tksidviewer.py/tkSidViewer.save_file