hephy-dd / comet

COMET - Control and Measurement Toolkit
GNU General Public License v3.0
2 stars 2 forks source link

Add message UI dialogs #25

Closed arnobaer closed 4 years ago

arnobaer commented 4 years ago

Add functions to create modal message dialogs.

>>> comet.show_info(title="Hey!", text="This is informative.")
>>> comet.show_warning(title="Ho!", text="Hold your horses.")
>>> comet.show_error(title="An error occurred", text="This is a fatal error.")
>>> comet.show_critical(title="A critical error occurred", text="This is really critical.")
>>> try:
...     no_such_func()
... except NameError as e:
...     comet.show_exception(e)