pythondialog icon indicating copy to clipboard operation
pythondialog copied to clipboard

Msgbox and input at the same time

Open luisarandas opened this issue 4 years ago • 1 comments

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

luisarandas avatar Nov 24 '21 15:11 luisarandas

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”.

frougon avatar Nov 25 '21 20:11 frougon