bipped = Element("target") def click_event(*ags, **kwgs): bipped.element.innerText += "Add" def on_click(evt): click_event()