documentation indexreference manualfunction index

ui.tag

Function: ui.tag (name):

This specifies the image tag for the next widget to be added to a layer. If the next widget to be created is not added to a layer, this is ignored. When a tag is specified, previous widgets with the same tag are removed from the layer.

python:
    ui.tag("mybutton")
    ui.at(my_button_transform)
    ui.textbutton("My Button", clicked=ui.returns(True))

documentation indexreference manualfunction index