Persistent Input (pin) #123
liaoshian
started this conversation in
Feature request
Replies: 1 comment 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found out that the page regarding Persistent Input (https://pywebio.readthedocs.io/en/latest/pin.html) was so poorly documented and the importance of using persistent input greatly underestimated.
One example is the BMI calculator demo, I'd like to modify it into a reusable calculator that whenever user enters his weight and height and hit return, the output area shows the results without destroying the input controls.
I tried to use Persistent Input but got frustrated, and finally retreated to use a while True loop to achieve this. It works but somehow ugly.
I'd suggest that add a parameter like "persistent=True" in normal input widgets instead of creating a whole branch of "pin" widgets that are so difficult to use.
Beta Was this translation helpful? Give feedback.
All reactions