def run_on_ui_thread(f):
 def f2(*args, **kwargs):
  Runnable(f)(*args, **kwargs)
 return f2

def run_on_ui_thread ( f ) : def f2 ( * args , ** kwargs ) : Runnable ( f ) ( * args , ** kwargs ) return f2
decorator to create automatically a :class:runnable object with the function .