Untitled
public text v1 · immutablelabel shop:
python:
def show_shop_ui():
ui.frame(xpos=100, ypos= 100)
ui.hbox()
ui.textbutton("sword",clicked=ui.returns("sword"))
ui.textbutton("circulo",clicked=ui.returns("circulo"))
ui.text("testing")
ui.close()
return
button = ""
while(True):
show_shop_ui()
button = ui.interact()
if button == "sword":
ui.text("Hola")
elif button == "circulo":
ui.text("Chau")
break
return