Beispiel #1
0
def run():
    try:
        bmi()
    except Exception as e:
        put_error(e)
        import sys
        sys.excepthook(*sys.exc_info())
            def add():
                name = pin["AddAlas_name"]
                origin = pin["AddAlas_copyfrom"]

                if name not in alas_instance():
                    r = read_file(filepath_config(origin))
                    write_file(filepath_config(name), r)
                    self.set_aside()
                    self.active_button("aside", self.alas_name)
                    close_popup()
                else:
                    clear(s)
                    put(name, origin)
                    put_error(t("Gui.AddAlas.FileExist"), scope=s)
#!/usr/bin/env python3
# vim: set fileencoding=utf-8

import pywebio.output as out

out.put_info("Info message")
out.put_success("Success message")
out.put_warning("Warning message")
out.put_error("Error message")