Decorator for registering a function as a callback in a new thread. The function will be repeatedly called every interval seconds. This decorator accomplishes the same thing as creating a
rumps.Timerobject by using the decorated function and interval as parameters and starting it on application launch.
@rumps.timer(2) def repeating_function(sender): print 'hi'
Parameters: interval – a number representing the time in seconds before the decorated function should be called.