Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from pywebio import input as pin
from pywebio import output as pout
pout.put_code("""pin.input("What's your favorite fruit?")""")
pin.input("What's your favorite fruit?")
pout.put_code("""pin.slider("How old are you?", min_value=0, max_value=120)""")
pin.slider("How old are you?", min_value=0, max_value=120)
pout.put_code("""pin.checkbox("What toppings for pizza?", options=["pepperoni", "sausage", "chicken"])""")
pin.checkbox("What toppings for pizza?", options=["pepperoni", "sausage", "chicken"])
pout.put_code("""pin.select("Who's GOAT in NBA?", options=["Bryant", "Jordan", "James"])""")
pin.select("Who's GOAT in NBA?", options=["Bryant", "Jordan", "James"])
pout.put_code("""pin.radio("Are you ready to try pyWebIO?", options=["Yes", "No"])""")
pin.radio("Are you ready to try pyWebIO?", options=["Yes", "No"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment