#NEWLINE# def save_file( self , param = None ) : #NEWLINE# #INDENT# "Save the files as per user's menu choice" #NEWLINE# param = ( param if isinstance ( param , str ) else param . keysym ) #NEWLINE# if ( param == 'r' ) : #NEWLINE# #INDENT# saved_files = self . controller . save_current_buffers ( log_type = 'raw' , log_format = 'both' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( param == 'f' ) : #NEWLINE# #INDENT# saved_files = self . controller . save_current_buffers ( log_type = 'filtered' , log_format = 'both' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( param == 'e' ) : #NEWLINE# #INDENT# saved_files = self . controller . save_current_buffers ( log_type = 'raw' , log_format = 'supersid_extended' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( param == 's' ) : #NEWLINE# #INDENT# filename = self . AskSaveasFilename ( ) #NEWLINE# if filename : #NEWLINE# #INDENT# saved_files = self . controller . save_current_buffers ( saved_files , log_type = 'filtered' , log_format = 'supersid' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# MessageBox . showinfo ( 'SuperSID files saved' , '\n' . join ( saved_files ) )