def set ( self , f ) : self . stop ( ) self . _create_timer ( f ) self . start ( )
run python funcntion for only x seconds
Call a function after a delay unless another function is set in the meantime .
def set(self, f):
        """Call a function after a delay, unless another function is set
        in the meantime."""
        self.stop()
        self._create_timer(f)
        self.start()