Guys, here is a Gist for a wrapper around the dialogs.form_dialog. It's not complete and I am sure it has a few problems. Was just something i was doing to learn. I often wonder about these wrappers, do they actually complicate the thing you are trying to help with. Regardless, by attempting it, i learn more about form_dialog and python in general.
I also hope it brings attention to the dialogs module. It can be very helpful and save you a lot of time.
Comments are always welcome, even if they are negative but hopefully constructive.
I have to say, I have a lot of time for the members here. Everyone is treated with respect, regardless of your programming level. Means a lot. It gives you the freedom to post your code with the knowledge you are not going to be flamed or torched :)
Edit, when i say not complete, it does run. But it does need more work
Can you please share a few sentences on what the main goal/added functionality/convenience of the wrapper is, or is going to be?
@mikael , it was just really to abstract the sections and the field creation for the params to the sections param to form_dialog. The extra part I didn't get to yet, was persistence. I think in reality most forms require persistence. Sure not all, but a lot. But it turns out this has been on @omz's radar anyway. I knew this before i started. So what i have tried to do will be defunct. I thought would be fun to try.
I also think about another buzz concept, cards. At least, i see quite a few articles about a card concept in web pages. For me the idea of cards is not new. I am very old. HyperCard/SuperCard had this concept more than 20 years ago. A project was a stack of cards.
I can see how cards in Pythonista could be very powerful. Cards is just an idea/concept. It's just a view of information and maybe its interactive or static. Then you have a stack of cards that are somehow related. This could be menu items for a restaurant or a bookings for a hotel for a day for example.
Sorry, i know this seems to go of track. But in my mind it doesn't. @omz created a module for dialogs, to aid in the capturing/displaying of infomation.
If I was a super Python programmer and super software framework architect, I would create a stack/card framework for Pythonista. But alas I am neither :(
But a dialog in my mind is just a card displayed synchronously. Ok, sorry, I went past your few sentences. Maybe I didn't articulate my meaning so well. But i see it very cleaarly in my head at least. I have Had quite a few whiskeys already today, It does not make me crazy, but it brings out my passionate side :)