def set(self, value, custom_command=True):
        """Set scale to value.

        Parameters
        ==========

        value (0.0 <= float <= 1.0)
            value of the widget.
        custom_command (boolean)
            indicates whether the command must be executed
            after setting the value.
        """
        ### clamp and store value
        self.value = value

        ### update handle position
        self.place_handle()

        ### if requested, give feedback
        if custom_command:
            self.command()
Set scale to value.

        Parameters
        ==========

        value (0.0 <= float <= 1.0)
            value of the widget.
        custom_command (boolean)
            indicates whether the command must be executed
            after setting the value.
        
nodezator/our3rdlibs/scale.py