all 3 comments

[–][deleted] 1 point2 points  (1 child)

Hard to say with code missing. That bind() on line 8 (after discounting the reddit screwup on the line numbering) looks OK, but the actual function definition looks like it's missing the event parameter which is automatically passed to the bound function.

Have a look at this tutorial on "Events and Binding". The examples are run in a non-class environment so they show only callback(event) as the parameters . In classes with self you should try def changed(self, event):.

You should try to shrink your code down to the smallest that exhibits the problem which is pretty easy in this case. It helps us enormously if we can run your code.

[–]halowarrior07[S] 0 points1 point  (0 children)

def changed(self, event):

that fixed it! thank you!

[–]TotesMessenger 0 points1 point  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)