def METHOD_NAME(sender, args):
    # the decorator captures the function from the class and not from the
    # instance. so the capture function is not bound thus no 'self'
    # ui however is inside the context and still accessible
    ui.update_ui()