On Thu, Jun 28, 2012 at 9:35 AM, Chris Angelico <ros...@gmail.com> wrote: > On Thu, Jun 28, 2012 at 9:24 AM, David <dwb...@gmail.com> wrote: >> First, you should be getting an error on >> vars()[var] = Button(f3, text = "00", bg = "white") >> as vars() has not been declared and it does not appear to be valid Python >> syntax. > > It's valid syntax, but highly inadvisable.
Clarification: There's nothing inadvisable about the syntax, just about writing to vars(). Dereferencing a function's return value is perfectly alright. ChrisA -- http://mail.python.org/mailman/listinfo/python-list