Next / Previous / Contents / Shipman's homepage

19.8. ParamSlider.__scaleHandler(): Somebody dragged the scale

This method is called whenever the slider in the Scale widget gets moved.

# - - -   P a r a m S l i d e r . _ _ s c a l e H a n d l e r

    def __scaleHandler ( self, value ):
        """Handler for self.__scale

Whenever the scale changes, we must notify the external observers by calling the callback function in self.__callback. The callback doesn't take any arguments.

        #-- 1 --
        if  self.__callback is not None: