def METHOD_NAME(self,e):
    slider = e.get_target_obj()
    code = e.get_code()
    if code == lv.EVENT.VALUE_CHANGED:
        v = slider.get_value()
        # print("slider_event_cb: {:d}".format(v))
        lv.msg_send(MSG_SET, NewValue(v))
    elif code == lv.EVENT.MSG_RECEIVED:
        m = e.get_msg()
        if m.get_id() == MSG_UPDATE:
            v = m.get_payload()
            value = v.__cast__()
            slider.set_value(value.value, lv.ANIM.OFF)