How to update data using onClick button

def updateData(v, TXT='new'):
    global data
    data = TXT
3 Likes