Next / Previous / Contents / TCC Help System / NM Tech homepage

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

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

huey
# - - -   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.

huey
        #-- 1 --
        if  self.__callback is not None:
            self.__callback()