def GravaCSV(self):
        '''Pega nome do cronometro e cria arquivo para guardar as laps'''
        arquivo = str(self.e.get()) + ' - '
        with open(arquivo + self.today + '.txt', 'wb') as lapfile:
            for lap in self.laps:
                lapfile.write((bytes(str(lap) + '\n', 'utf-8')))
Pega nome do cronometro e cria arquivo para guardar as laps
recipes/Python/578666_Stopwatch_with_laps_in_Tkinter/recipe-578666.py