fioncat / otree

A command line tool to view objects (JSON/YAML/TOML) in TUI tree widget.
MIT License
142 stars 4 forks source link

Support popup a widget to show error message #21

Closed fioncat closed 3 weeks ago

fioncat commented 3 weeks ago

In App, now we can use:

self.popup(String::from("foo"), PopupLevel::Error)

to popup a widget to show error message.

This is to prepare for developing more features in the future, since we need a way to display error messages to the user.