Create a GUI that can be displayed in a browser
browsergui.py
# -*- coding: utf-8 -*-
from browsergui import GUI, Text, Button
button = Button('0')
@button.def_callback
def increment():
button.text = str(int(button.text)+1)
GUI(button).run()
Recommended Posts