frougon / pythondialog

Python wrapper for the Unix "dialog" utility
GNU Lesser General Public License v2.1
25 stars 8 forks source link

Msgbox and input at the same time #11

Open luisarandas opened 2 years ago

luisarandas commented 2 years ago

Hello!

I am wondering if it is possible to have two widgets at the same time, one msgbox to display text and alter in realtime and a dialog text input under. Does the library support this? With the examples, running one widget after the other I'm not sure how to approach this.

Thanks

frougon commented 2 years ago

Hello,

I don't think this is possible. The dialog man page mentions “polling for updates” regarding --tailboxbg, however I can't see the corresponding text being updated with a test like:

dialog --tailboxbg /some/file 25 60 --and-widget --inputbox "Foo bar" 5 50 "Initial text."

Maybe I'm doing it incorrectly—who knows? In any case, as said in the pythondialog documentation and on the pythondialog PyPI page, pythondialog is for simple user interfaces. If you want to implement a sophisticated UI or need more control, a real toolkit like Qt is more appropriate, IMHO.

If you have questions, it would be better to ask them on the mailing-list rather than filing “issues”.