Thanks, that's much better now. The problem is that the if block starting on the line if obj == ollie_slider: is not indented properly. You need to indent that block of code so that it is part of the myslider function. Otherwise, that code is part of the global scope, which does not contain an obj variable, hence the error.
|