peterbrittain / asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Apache License 2.0
3.64k stars 238 forks source link

Support Popups without buttons #209

Closed jabdoa2 closed 5 years ago

jabdoa2 commented 5 years ago

Is your feature request related to a problem? Please describe. PopupDialogs currently always add two layouts. One for the text and one for buttons. This does not look very nice when not using any buttons.

Describe the solution you'd like Please omit the second layout when not providing buttons.

Describe alternatives you've considered Passing an empty list of buttons works but add two empty lines to the end of the message.

peterbrittain commented 5 years ago

I'm not quite sure about this request... Can you explain how you would use such a Dialog? In particular, why allow a dialog that can't be dismissed (because there are no buttons to close it)?

jabdoa2 commented 5 years ago

Our example is "Waiting for client to connect" or "Waiting to load assets". This are status messages mostly but the UI cannot be used until this is finished.

peterbrittain commented 5 years ago

Oh... I see. You deliberately don't want the user to be able to enter anything and will dismiss it yourself when the program is ready. OK. That makes sense.