[Tutor] Fwd: Re: Need Help Modifying a wxPython GUI (scrolling display and logging)
Matt D
md123 at nycap.rr.com
Fri Jun 14 14:45:50 CEST 2013
i am trying to figure a way to to use a list to log/print my data:
# tmplist = [time, 'nac', 'tgid', 'source', 'dest', 'algid'] is what we
want
tmplist = []
tmplist.append((str(strftime("%Y-%m-%d %H:%M:%S", localtime())))
tmplist.append(field_values["nac"])
tmplist.append(field_values["tgid"])
tmplist.append(field_values["source"])
tmplist.append(field_values["dest"])
tmplist.append(field_values["algid"])
When i run the code program dies like this:
tmplist.append(field_values["nac"])
^
SyntaxError: invalid syntax
I cant figure why it stops on the third line above? Anyone have an idea?
Thanks!
More information about the Tutor
mailing list