Skip to content

Add element without replacing #51

Answered by wang0618
mawoka-myblock asked this question in Q&A
Discussion options

You must be logged in to vote

You can uses the scope model to give more control to the location of content output:

with use_scope('name'):  # open and enter a new output: 'scope1'
    put_text("Hello")

name = input('Your name')
put_text(name, scope='name')  

Doc: https://pywebio.readthedocs.io/en/latest/guide.html#output-scope

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mawoka-myblock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants