I have some code like this:
#w = open("blabla.py", "w") is already called
w.write("Button(root, text = %s,command=%s).grid(row=%s,column=%s)\n" % textvalue,buttoncommand,str(rowvalue),str(columnvalue))
However, if I run this, I get the following error:
TypeError: not enough arguments for format string
What is wrong?