| Homepage | https://devjoe.appspot.com/ |
| Homepage | https://devjoe.appspot.com/ |
@peterrowlett An easy mistake for someone learning to make.
The value assigned to command should not have parentheses after it. It should pass the function itself, without parens. Instead, it calls the function while defining the Button.
Until ttk.Button returns, button doesn't exist, causing the error. If it didn't cause an error, it would assign the output of the function to command, leading to a different error which the button is clicked, about not being able to execute the value.
I've known about this since even before this #mitmysteryhunt was released since I was on the constructing team, but I've never revealed one of the most bizarre and obscure coincidences I've ever witnessed until now.
While the movies with robots round, set in a fictionalized version of 1926, https://puzzles.mit.edu/2010/puzzles/1926/ was being constructed for the 2010 Hunt, Norwegian electronic band Ugress released "It was a Great Year (Movies with Robots)" https://ugress.bandcamp.com/track/it-was-a-great-year-movies-with-robots #ugress