Issue creating a save as function in python : Im trying to create a function to save data taken from multiple Entry widgets in my code and create a new save file storing the data from all the entries, i made a entry list called entries and try to pull from that but cant get it quite right. It will create the file but its always blank. This is the code for my save as function using tkinter widgets.

    def file_save_as(self):
        fout = asksaveasfile(mode = 'a', defaultextension = '.txt')
        with open('fout', 'a') as f:
            for entry in self.entries:
                f.write("%s\n" % entry)
        