bettingentry
is defined on line 25 - remember LEGB.Having another quick skim through the code: is line 30 the problem? Did you intend to call the function there, passing Its return value as
command
, or should you be passing the function itself? It's an educated guess - I assume that the function passed as command
is called when the button is pressed. Drop the parens if you did mean to pass the function. I suspect the same is true for line 33.The docs at effbot.org seem to confirm my suspicion (note that
bind
is inherited from the Widget
class, so also see its docs).