(Oct-27-2017, 04:49 PM)Larz60+ Wrote: what does a4 look like?
could this have something to do with it?
#value4 = (a4.get())That's commented out
That line was commented out for another experimental reason. But its the a4 string which i want to save to text file. The code that generate the data is
def funktion(self): value1 = (a1.get()) value2 = (a2.get()) value3 = (a3.get()) #value4 = (a4.get()) for parts in range(value3): print('{}-{}-{}-{}\n'.format(value1, value2, parts+1, parts+1)) #self.file.writelines('{}-{}-{}-{}\n'.format(value1, value2, parts+1, parts+1)) a4.set('{}-{}-{}-{}\n'.format(value1, value2, parts+1, parts+1))can this line be the fault ?
a4.set('{}-{}-{}-{}\n'.format(value1, value2, parts+1, parts+1))