Form widget
#105
Replies: 2 comments 4 replies
-
Looks like https://github.com/sirfuzzalot/textual-inputs might be something to draw inspiration from. (Spotted in an answer by Will in an issue somewhere.) |
Beta Was this translation helpful? Give feedback.
3 replies
-
Form inputs are an important feature, but there's lots to do before I get there. There probably needs to be a table layout, to have rows and columns of alternating labels. and widgets. Also a fleshed out tab focus system. Ultimately I would like there to be a declarative approach, like Pydantic which would both run the widgets and returned validated data. Lots to do first though... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get my head around what a form widget would look like. For my little app, I'd like to have people enter some credentials, so I'd like a form with two rows and two columns. I'm struggling to work out how to put the pieces together.
My thinking so far:
Panel
on_key
and updating the content but would be curious if there was another way.username
andpassword
labels left-aligned in the left column and then the right column being left-aligned as well.TBH, I'm not 100% sure how to put a mock-up together with Rich, so I'm going to start there but I'm posting here as it's some useful rubber-ducking if nothing else.
Beta Was this translation helpful? Give feedback.
All reactions